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.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/town.h') diff --git a/src/town.h b/src/town.h index f7f584b86..0e2b2221b 100644 --- a/src/town.h +++ b/src/town.h @@ -179,12 +179,12 @@ struct Town : PoolItem { /** * Creates a new town */ - Town(TileIndex tile = 0); + Town(TileIndex tile = INVALID_TILE); /** Destroy the town */ ~Town(); - inline bool IsValid() const { return this->xy != 0; } + inline bool IsValid() const { return this->xy != INVALID_TILE; } void InitializeLayout(); -- cgit v1.2.3-54-g00ecf