From 4dc787eb32858cb672292b5100c4109667d41af8 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 17 Sep 2016 19:13:46 +0100 Subject: store all terrain in Variable2DGzip format --- OpenSim/Framework/TerrainData.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Framework/TerrainData.cs b/OpenSim/Framework/TerrainData.cs index d2e1c6a..5cec2b5 100644 --- a/OpenSim/Framework/TerrainData.cs +++ b/OpenSim/Framework/TerrainData.cs @@ -201,6 +201,7 @@ namespace OpenSim.Framework public override bool GetDatabaseBlob(out int DBRevisionCode, out Array blob) { bool ret = false; +/* save all as Variable2DGzip if (SizeX == Constants.RegionSize && SizeY == Constants.RegionSize) { DBRevisionCode = (int)DBTerrainRevision.Legacy256; @@ -209,12 +210,13 @@ namespace OpenSim.Framework } else { +*/ DBRevisionCode = (int)DBTerrainRevision.Variable2DGzip; // DBRevisionCode = (int)DBTerrainRevision.Variable2D; blob = ToCompressedTerrainSerializationV2DGzip(); // blob = ToCompressedTerrainSerializationV2D(); ret = true; - } +// } return ret; } -- cgit v1.1