- Timestamp:
- Sep 5, 2014, 4:03:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/MapRendering/MapRendering.cs
r156 r168 82 82 Texture2D fullMapTexture = null; 83 83 84 if (Directory.Exists (Constants.MAP_DIRECTORY))85 Directory.Delete (Constants.MAP_DIRECTORY, true);86 87 renderingFullMap = true;88 89 84 Vector2i minChunk = default(Vector2i), maxChunk = default(Vector2i); 90 85 Vector2i minPos = default(Vector2i), maxPos = default(Vector2i); … … 99 94 ); 100 95 101 if (widthPix <= 8000 && heightPix <= 8000)102 fullMapTexture = new Texture2D (widthPix, heightPix);103 104 96 Monitor.Enter (Instance.zoomLevelBuffers); 105 97 try { 98 for (int i = 0; i < Constants.ZOOMLEVELS; i++) { 99 zoomLevelBuffers [i].ResetBlock (); 100 } 101 102 if (Directory.Exists (Constants.MAP_DIRECTORY)) 103 Directory.Delete (Constants.MAP_DIRECTORY, true); 104 105 renderingFullMap = true; 106 107 if (widthPix <= 8000 && heightPix <= 8000) 108 fullMapTexture = new Texture2D (widthPix, heightPix); 109 106 110 Vector2i curFullMapPos = default(Vector2i); 107 111 Vector2i curChunkPos = default(Vector2i);
Note:
See TracChangeset
for help on using the changeset viewer.