(svn r15583) -Fix: Do not use TILE_MASK when you do not want to wrap around them map.
This commit is contained in:
@@ -928,7 +928,7 @@ static void PlantFarmField(TileIndex tile, IndustryID industry)
|
||||
/* check the amount of bad tiles */
|
||||
count = 0;
|
||||
BEGIN_TILE_LOOP(cur_tile, size_x, size_y, tile)
|
||||
cur_tile = TILE_MASK(cur_tile);
|
||||
TILE_ASSERT(cur_tile);
|
||||
count += IsBadFarmFieldTile(cur_tile);
|
||||
END_TILE_LOOP(cur_tile, size_x, size_y, tile)
|
||||
if (count * 2 >= size_x * size_y) return;
|
||||
@@ -940,7 +940,7 @@ static void PlantFarmField(TileIndex tile, IndustryID industry)
|
||||
|
||||
/* make field */
|
||||
BEGIN_TILE_LOOP(cur_tile, size_x, size_y, tile)
|
||||
cur_tile = TILE_MASK(cur_tile);
|
||||
TILE_ASSERT(cur_tile);
|
||||
if (!IsBadFarmFieldTile2(cur_tile)) {
|
||||
MakeField(cur_tile, field_type, industry);
|
||||
SetClearCounter(cur_tile, counter);
|
||||
|
Reference in New Issue
Block a user