Ticket #3898: schwarzwald_r18021.patch

File schwarzwald_r18021.patch, 634 bytes (added by FeXoR, 8 years ago)

Patch against r18021

  • binaries/data/mods/public/maps/random/schwarzwald.js

     
    475475    var shift = [floor((newHeightmap.length - heightmap.length) / 2), floor((newHeightmap[0].length - heightmap[0].length) / 2)];
    476476    for (var x = 0; x < heightmap.length; x++)
    477477        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]];
    479479}
    480480
    481481