Ticket #4012: fix_trees_in_map_border2016-6-3.patch

File fix_trees_in_map_border2016-6-3.patch, 523 bytes (added by FeXoR, 8 years ago)

Just uses the distance parameter instead of a hardcoded 3

  • binaries/data/mods/public/maps/random/rmgen/map.js

     
    102102    }
    103103    else
    104104        // Within map square
    105         return x >= 0 && z >= 0 && x < this.size && z < this.size;
     105        return x >= distance && z >= distance && x < this.size - distance && z < this.size - distance;
    106106};
    107107
    108108// Check bounds on tile map