diff options
author | KUDr <kudr@openttd.org> | 2007-08-24 17:49:42 +0000 |
---|---|---|
committer | KUDr <kudr@openttd.org> | 2007-08-24 17:49:42 +0000 |
commit | 6c061ecfb491ab0cfc6665156ad7bed316ccb3e8 (patch) | |
tree | 20c2c26c03c418396e676a3949c14e1114616ab1 | |
parent | 99158287fd34351e811acef1cb5e1fbdbe059439 (diff) | |
download | openttd-6c061ecfb491ab0cfc6665156ad7bed316ccb3e8.tar.xz |
(svn r10973) -Fix [FS#1154]: update wp->xy when waypoint is moved (Catalan)
-rw-r--r-- | src/waypoint.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |