Changeset 148 for binary-improvements/7dtd-server-fixes/src
- Timestamp:
- Aug 31, 2014, 3:49:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/MapRendering/MapRendering.cs
r144 r148 87 87 renderingFullMap = true; 88 88 89 Vector2i minChunk , maxChunk;90 Vector2i minPos , maxPos;89 Vector2i minChunk = default(Vector2i), maxChunk = default(Vector2i); 90 Vector2i minPos = default(Vector2i), maxPos = default(Vector2i); 91 91 int widthChunks, heightChunks, widthPix, heightPix; 92 92 getWorldExtent (rfm, out minChunk, out maxChunk, out minPos, out maxPos, out widthChunks, out heightChunks, out widthPix, out heightPix); … … 104 104 Monitor.Enter (Instance.zoomLevelBuffers); 105 105 try { 106 Vector2i curFullMapPos ;107 Vector2i curChunkPos ;106 Vector2i curFullMapPos = default(Vector2i); 107 Vector2i curChunkPos = default(Vector2i); 108 108 for (curFullMapPos.x = 0; curFullMapPos.x < widthPix; curFullMapPos.x += Constants.MAP_CHUNK_SIZE) { 109 109 for (curFullMapPos.y = 0; curFullMapPos.y < heightPix; curFullMapPos.y += Constants.MAP_CHUNK_SIZE) { … … 186 186 //Log.Out ("Start Dirty: " + chunkPos); 187 187 188 Vector2i block , blockOffset;188 Vector2i block = default(Vector2i), blockOffset = default(Vector2i); 189 189 getBlockNumber (chunkPos, out block, out blockOffset, Constants.MAP_BLOCK_TO_CHUNK_DIV, Constants.MAP_CHUNK_SIZE); 190 190 191 191 zoomLevelBuffers [Constants.ZOOMLEVELS - 1].LoadBlock (block); 192 192 193 Vector2i v_block , v_blockOffset;193 Vector2i v_block = default(Vector2i), v_blockOffset = default(Vector2i); 194 194 foreach (Vector2i v in keys) { 195 195 getBlockNumber (v, out v_block, out v_blockOffset, Constants.MAP_BLOCK_TO_CHUNK_DIV, Constants.MAP_CHUNK_SIZE); … … 215 215 { 216 216 if (level > 0) { 217 Vector2i block , blockOffset;217 Vector2i block = default(Vector2i), blockOffset = default(Vector2i); 218 218 getBlockNumber (innerBlock, out block, out blockOffset, 2, Constants.MAP_BLOCK_SIZE / 2); 219 219
Note:
See TracChangeset
for help on using the changeset viewer.