1
0
Fork 0

(svn r10973) -Fix [FS#1154]: update wp->xy when waypoint is moved (Catalan)

release/0.6
KUDr 2007-08-24 17:49:42 +00:00
parent 99158287fd
commit 6c061ecfb4
1 changed files with 4 additions and 0 deletions

View File

@ -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) {