mirror of https://github.com/OpenTTD/OpenTTD
(svn r10973) -Fix [FS#1154]: update wp->xy when waypoint is moved (Catalan)
parent
99158287fd
commit
6c061ecfb4
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue