diff options
author | rubidium <rubidium@openttd.org> | 2009-07-18 18:39:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-18 18:39:17 +0000 |
commit | 3fcfb9b248bd228d5885974858a14724205626ad (patch) | |
tree | 6b35f962b628ddcf39d6c80e26497cf856a5aa82 /src/waypoint.h | |
parent | 73453e61d678d106be04149fc549716ecc5eed58 (diff) | |
download | openttd-3fcfb9b248bd228d5885974858a14724205626ad.tar.xz |
(svn r16876) -Codechange: add helper functions to cast to Station/Waypoint with some extra checks.
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 ee3122fe4..c7d151350 100644 --- a/src/waypoint.h +++ b/src/waypoint.h @@ -17,10 +17,10 @@ typedef Pool<Waypoint, WaypointID, 32, 64000> WaypointPool; extern WaypointPool _waypoint_pool; -struct Waypoint : WaypointPool::PoolItem<&_waypoint_pool>, BaseStation { +struct Waypoint : WaypointPool::PoolItem<&_waypoint_pool>, SpecializedStation<Waypoint, true> { uint16 town_cn; ///< The Nth waypoint for this town (consecutive number) - Waypoint(TileIndex tile = INVALID_TILE) : BaseStation(tile) { } + Waypoint(TileIndex tile = INVALID_TILE) : SpecializedStation<Waypoint, true>(tile) { } ~Waypoint(); void UpdateVirtCoord(); |