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 | 9503f02063410f6a38a96013d6fa3ad07d04889b (patch) | |
tree | 20c2c26c03c418396e676a3949c14e1114616ab1 /src | |
parent | 40d4d2f2cabc3ba9a15294422f944690de0d5984 (diff) | |
download | openttd-9503f02063410f6a38a96013d6fa3ad07d04889b.tar.xz |
(svn r10973) -Fix [FS#1154]: update wp->xy when waypoint is moved (Catalan)
Diffstat (limited to 'src')
-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) { |