From a0c4f1156aa5fcd503d976c102db89b5a683b81a Mon Sep 17 00:00:00 2001 From: yexo Date: Wed, 25 Feb 2009 21:50:54 +0000 Subject: (svn r15585) -Codechange: Remove TILE_ASSERT and replace all instances with assert(tile < MapSize()). --- src/unmovable_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/unmovable_cmd.cpp') diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp index a3f5b5117..b76a3e017 100644 --- a/src/unmovable_cmd.cpp +++ b/src/unmovable_cmd.cpp @@ -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)); -- cgit v1.2.3-54-g00ecf