diff options
author | rubidium <rubidium@openttd.org> | 2009-07-21 16:30:01 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-21 16:30:01 +0000 |
commit | 0658d6cb3d649c2e4ef9a8ebb1ae1440ae18e87d (patch) | |
tree | aa80c3c150e3bc8f76cae4d025d46d274fa31305 /src/waypoint_cmd.cpp | |
parent | f09df6460885470a865eb31b843bb564f3a8a078 (diff) | |
download | openttd-0658d6cb3d649c2e4ef9a8ebb1ae1440ae18e87d.tar.xz |
(svn r16900) -Codechange: prepare the waypoint window for buoys
Diffstat (limited to 'src/waypoint_cmd.cpp')
-rw-r--r-- | src/waypoint_cmd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/waypoint_cmd.cpp b/src/waypoint_cmd.cpp index 882ba6097..cb6f3b767 100644 --- a/src/waypoint_cmd.cpp +++ b/src/waypoint_cmd.cpp @@ -193,6 +193,7 @@ CommandCost CmdBuildTrainWaypoint(TileIndex tile, DoCommandFlag flags, uint32 p1 AllocateSpecToStation(GetCustomStationSpec(STAT_CLASS_WAYP, p1), wp, true); wp->delete_ctr = 0; + wp->facilities |= FACIL_TRAIN; wp->build_date = _date; if (wp->town == NULL) MakeDefaultWaypointName(wp); @@ -228,6 +229,7 @@ CommandCost RemoveTrainWaypoint(TileIndex tile, DoCommandFlag flags, bool justre wp->delete_ctr = 30; // let it live for this many days before we do the actual deletion. wp->sign.MarkDirty(); + wp->facilities &= ~FACIL_TRAIN; Train *v = NULL; if (justremove) { |