(svn r15583) -Fix: Do not use TILE_MASK when you do not want to wrap around them map.
This commit is contained in:
@@ -452,10 +452,11 @@ void GenerateUnmovables()
|
||||
MakeLighthouse(tile);
|
||||
IncreaseGeneratingWorldProgress(GWP_UNMOVABLE);
|
||||
lighthouses_to_build--;
|
||||
assert(tile == TILE_MASK(tile));
|
||||
TILE_ASSERT(tile);
|
||||
break;
|
||||
}
|
||||
tile = TILE_MASK(tile + TileOffsByDiagDir(dir));
|
||||
tile = AddTileIndexDiffCWrap(tile, TileIndexDiffCByDiagDir(dir));
|
||||
if (tile == INVALID_TILE) break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user