diff options
author | tron <tron@openttd.org> | 2006-03-17 10:10:31 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-17 10:10:31 +0000 |
commit | 89090790c2405a738f5977310549cf94df9c06cb (patch) | |
tree | 0fa3ce74d133cc13b1aaf01d162e59d16ce3371e /waypoint.c | |
parent | d8677f1afad4e706b92689b471d6c7a6c210aa82 (diff) | |
download | openttd-89090790c2405a738f5977310549cf94df9c06cb.tar.xz |
(svn r3916) Get/Set the rail type by [GS]etRailType{Crossing,OnBridge,}()
Diffstat (limited to 'waypoint.c')
-rw-r--r-- | waypoint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/waypoint.c b/waypoint.c index 8ff180875..cb51b2ef3 100644 --- a/waypoint.c +++ b/waypoint.c @@ -213,7 +213,7 @@ int32 CmdBuildTrainWaypoint(int x, int y, uint32 flags, uint32 p1, uint32 p2) if (flags & DC_EXEC) { const StationSpec *spec = NULL; - MakeRailWaypoint(tile, GetTileOwner(tile), axis, GB(_m[tile].m3, 0, 4), wp->index); + MakeRailWaypoint(tile, GetTileOwner(tile), axis, GetRailType(tile), wp->index); MarkTileDirtyByTile(tile); if (GB(p1, 0, 8) < GetNumCustomStations(STAT_CLASS_WAYP)) @@ -300,7 +300,7 @@ int32 RemoveTrainWaypoint(TileIndex tile, uint32 flags, bool justremove) RedrawWaypointSign(wp); if (justremove) { - MakeRailNormal(tile, GetTileOwner(tile), GetRailWaypointBits(tile), GB(_m[tile].m3, 0, 4)); + MakeRailNormal(tile, GetTileOwner(tile), GetRailWaypointBits(tile), GetRailType(tile)); MarkTileDirtyByTile(tile); } else { DoClearSquare(tile); |