Change: [Script] GetWaypointID to return the StationID of any waypoint
Modified ScriptWaypoint::GetWaypointID to also return the StationID of any waypoint (including road waypoint).
This commit is contained in:
@@ -54,10 +54,11 @@ public:
|
||||
static bool IsValidWaypoint(StationID waypoint_id);
|
||||
|
||||
/**
|
||||
* Get the StationID of a tile.
|
||||
* Get the StationID of a tile, if there is a waypoint.
|
||||
* @param tile The tile to find the StationID of.
|
||||
* @pre ScriptRail::IsRailWaypointTile(tile).
|
||||
* @pre IsValidTile(tile).
|
||||
* @return StationID of the waypoint.
|
||||
* @post Use IsValidWaypoint() to see if the waypoint is valid.
|
||||
*/
|
||||
static StationID GetWaypointID(TileIndex tile);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user