equal
deleted
inserted
replaced
57 * @return Waypoint |
57 * @return Waypoint |
58 */ |
58 */ |
59 static inline Waypoint *GetWaypointByTile(TileIndex tile) |
59 static inline Waypoint *GetWaypointByTile(TileIndex tile) |
60 { |
60 { |
61 assert(IsTileType(tile, MP_RAILWAY) && IsRailWaypoint(tile)); |
61 assert(IsTileType(tile, MP_RAILWAY) && IsRailWaypoint(tile)); |
62 return GetWaypoint(_m[tile].m2); |
62 return GetWaypoint(GetWaypointIndex(tile)); |
63 } |
63 } |
64 |
64 |
65 int32 RemoveTrainWaypoint(TileIndex tile, uint32 flags, bool justremove); |
65 int32 RemoveTrainWaypoint(TileIndex tile, uint32 flags, bool justremove); |
66 Station *ComposeWaypointStation(TileIndex tile); |
66 Station *ComposeWaypointStation(TileIndex tile); |
67 void ShowRenameWaypointWindow(const Waypoint *cp); |
67 void ShowRenameWaypointWindow(const Waypoint *cp); |