src/waypoint.h
changeset 6182 7337aca829f1
parent 5475 2e6990a8c7c4
child 6247 7d81e3a5d803
equal deleted inserted replaced
6181:2d0ac0598453 6182:7337aca829f1
    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);