diff options
author | smatz <smatz@openttd.org> | 2009-05-17 01:00:56 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-17 01:00:56 +0000 |
commit | 871107f52952ee59c353feab933126ed206e60bf (patch) | |
tree | 482884dfedc1700bddb8812f1de755212ed8bb22 /src/waypoint.h | |
parent | ed1e54bd84074412ea9f273b7cd86aed42d844ce (diff) | |
download | openttd-871107f52952ee59c353feab933126ed206e60bf.tar.xz |
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
Diffstat (limited to 'src/waypoint.h')
-rw-r--r-- | src/waypoint.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/waypoint.h b/src/waypoint.h index fe80b2ba9..eedef025b 100644 --- a/src/waypoint.h +++ b/src/waypoint.h @@ -40,11 +40,6 @@ struct Waypoint : PoolItem<Waypoint, WaypointID, &_Waypoint_pool> { inline bool IsValid() const { return this->xy != INVALID_TILE; } }; -static inline bool IsValidWaypointID(WaypointID index) -{ - return index < Waypoint::GetPoolSize() && Waypoint::Get(index)->IsValid(); -} - #define FOR_ALL_WAYPOINTS_FROM(wp, start) for (wp = Waypoint::Get(start); wp != NULL; wp = (wp->index + 1U < Waypoint::GetPoolSize()) ? Waypoint::Get(wp->index + 1U) : NULL) if (wp->IsValid()) #define FOR_ALL_WAYPOINTS(wp) FOR_ALL_WAYPOINTS_FROM(wp, 0) |