diff options
author | UbitUmarov | 2016-09-17 19:13:46 +0100 |
---|---|---|
committer | UbitUmarov | 2016-09-17 19:13:46 +0100 |
commit | 4dc787eb32858cb672292b5100c4109667d41af8 (patch) | |
tree | 7e368c09603aad848c6dc24075a67273606d1567 /OpenSim/Framework/TerrainData.cs | |
parent | add rest of wiring for terrain bake persistent store (mantis 8024 but not (diff) | |
download | opensim-SC-4dc787eb32858cb672292b5100c4109667d41af8.zip opensim-SC-4dc787eb32858cb672292b5100c4109667d41af8.tar.gz opensim-SC-4dc787eb32858cb672292b5100c4109667d41af8.tar.bz2 opensim-SC-4dc787eb32858cb672292b5100c4109667d41af8.tar.xz |
store all terrain in Variable2DGzip format
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/TerrainData.cs | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |||
201 | public override bool GetDatabaseBlob(out int DBRevisionCode, out Array blob) | 201 | public override bool GetDatabaseBlob(out int DBRevisionCode, out Array blob) |
202 | { | 202 | { |
203 | bool ret = false; | 203 | bool ret = false; |
204 | /* save all as Variable2DGzip | ||
204 | if (SizeX == Constants.RegionSize && SizeY == Constants.RegionSize) | 205 | if (SizeX == Constants.RegionSize && SizeY == Constants.RegionSize) |
205 | { | 206 | { |
206 | DBRevisionCode = (int)DBTerrainRevision.Legacy256; | 207 | DBRevisionCode = (int)DBTerrainRevision.Legacy256; |
@@ -209,12 +210,13 @@ namespace OpenSim.Framework | |||
209 | } | 210 | } |
210 | else | 211 | else |
211 | { | 212 | { |
213 | */ | ||
212 | DBRevisionCode = (int)DBTerrainRevision.Variable2DGzip; | 214 | DBRevisionCode = (int)DBTerrainRevision.Variable2DGzip; |
213 | // DBRevisionCode = (int)DBTerrainRevision.Variable2D; | 215 | // DBRevisionCode = (int)DBTerrainRevision.Variable2D; |
214 | blob = ToCompressedTerrainSerializationV2DGzip(); | 216 | blob = ToCompressedTerrainSerializationV2DGzip(); |
215 | // blob = ToCompressedTerrainSerializationV2D(); | 217 | // blob = ToCompressedTerrainSerializationV2D(); |
216 | ret = true; | 218 | ret = true; |
217 | } | 219 | // } |
218 | return ret; | 220 | return ret; |
219 | } | 221 | } |
220 | 222 | ||