Ticket #3898: schwarzwald_r18021.patch
File schwarzwald_r18021.patch, 634 bytes (added by , 8 years ago) |
---|
-
binaries/data/mods/public/maps/random/schwarzwald.js
475 475 var shift = [floor((newHeightmap.length - heightmap.length) / 2), floor((newHeightmap[0].length - heightmap[0].length) / 2)]; 476 476 for (var x = 0; x < heightmap.length; x++) 477 477 for (var y = 0; y < heightmap[0].length; y++) 478 heightmap[x][y] = newHeightmap[x ][y];478 heightmap[x][y] = newHeightmap[x + shift[0]][y + shift[1]]; 479 479 } 480 480 481 481