From 0658d6cb3d649c2e4ef9a8ebb1ae1440ae18e87d Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 21 Jul 2009 16:30:01 +0000 Subject: (svn r16900) -Codechange: prepare the waypoint window for buoys --- src/waypoint_cmd.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/waypoint_cmd.cpp') 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) { -- cgit v1.2.3-54-g00ecf