From 254e19da91309da11416c69ae7899dc11e608df0 Mon Sep 17 00:00:00 2001 From: smatz Date: Sat, 3 Jan 2009 16:06:58 +0000 Subject: (svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid depots, industries, towns and waypoints --- src/town_cmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/town_cmd.cpp') diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index e37e331c1..ec318f488 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -65,7 +65,7 @@ DEFINE_OLD_POOL_GENERIC(Town, Town) Town::Town(TileIndex tile) { - if (tile != 0) _total_towns++; + if (tile != INVALID_TILE) _total_towns++; this->xy = tile; } @@ -115,7 +115,7 @@ Town::~Town() MarkWholeScreenDirty(); - this->xy = 0; + this->xy = INVALID_TILE; UpdateNearestTownForRoadTiles(false); } -- cgit v1.2.3-54-g00ecf