diff options
author | smatz <smatz@openttd.org> | 2009-01-03 16:06:58 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-01-03 16:06:58 +0000 |
commit | 254e19da91309da11416c69ae7899dc11e608df0 (patch) | |
tree | cfe8a97df4f219709152bb304eee65541e9ab8db /src/waypoint.h | |
parent | 21308de6cb2995912d67af4ae704a8870d90e156 (diff) | |
download | openttd-254e19da91309da11416c69ae7899dc11e608df0.tar.xz |
(svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid depots, industries, towns and waypoints
Diffstat (limited to 'src/waypoint.h')
-rw-r--r-- | src/waypoint.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/waypoint.h b/src/waypoint.h index a4afbba43..8b07bdbac 100644 --- a/src/waypoint.h +++ b/src/waypoint.h @@ -33,10 +33,10 @@ struct Waypoint : PoolItem<Waypoint, WaypointID, &_Waypoint_pool> { byte deleted; ///< Delete counter. If greater than 0 then it is decremented until it reaches 0; the waypoint is then is deleted. - Waypoint(TileIndex tile = 0); + Waypoint(TileIndex tile = INVALID_TILE); ~Waypoint(); - inline bool IsValid() const { return this->xy != 0; } + inline bool IsValid() const { return this->xy != INVALID_TILE; } }; static inline bool IsValidWaypointID(WaypointID index) |