From 6c061ecfb491ab0cfc6665156ad7bed316ccb3e8 Mon Sep 17 00:00:00 2001 From: KUDr Date: Fri, 24 Aug 2007 17:49:42 +0000 Subject: (svn r10973) -Fix [FS#1154]: update wp->xy when waypoint is moved (Catalan) --- src/waypoint.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/waypoint.cpp') diff --git a/src/waypoint.cpp b/src/waypoint.cpp index 9847c9870..7383a2e9f 100644 --- a/src/waypoint.cpp +++ b/src/waypoint.cpp @@ -196,6 +196,10 @@ CommandCost CmdBuildTrainWaypoint(TileIndex tile, uint32 flags, uint32 p1, uint3 wp->town_index = 0; wp->string = STR_NULL; wp->town_cn = 0; + } else if (flags & DC_EXEC) { + /* move existing (recently deleted) waypoint to the new location */ + RedrawWaypointSign(wp); + wp->xy = tile; } if (flags & DC_EXEC) { -- cgit v1.2.3-54-g00ecf