(svn r15585) -Codechange: Remove TILE_ASSERT and replace all instances with assert(tile < MapSize()).

This commit is contained in:
yexo
2009-02-25 21:50:54 +00:00
parent fb7b0536e7
commit a0c4f1156a
4 changed files with 7 additions and 12 deletions

View File

@@ -452,7 +452,7 @@ void GenerateUnmovables()
MakeLighthouse(tile);
IncreaseGeneratingWorldProgress(GWP_UNMOVABLE);
lighthouses_to_build--;
TILE_ASSERT(tile);
assert(tile < MapSize());
break;
}
tile = AddTileIndexDiffCWrap(tile, TileIndexDiffCByDiagDir(dir));