diff options
author | frosch <frosch@openttd.org> | 2009-02-25 21:29:50 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-02-25 21:29:50 +0000 |
commit | c5684e56ec96f530178d7e66aebb830fe6829974 (patch) | |
tree | b564a00f660cd32d8c8f6fbeca4fd2642c760312 /src/unmovable_cmd.cpp | |
parent | c7e324bb400d3d9fa5d1db5c0330861f366949af (diff) | |
download | openttd-c5684e56ec96f530178d7e66aebb830fe6829974.tar.xz |
(svn r15583) -Fix: Do not use TILE_MASK when you do not want to wrap around them map.
Diffstat (limited to 'src/unmovable_cmd.cpp')
-rw-r--r-- | src/unmovable_cmd.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp index 04be24e2d..a3f5b5117 100644 --- a/src/unmovable_cmd.cpp +++ b/src/unmovable_cmd.cpp @@ -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; } } } |