summaryrefslogtreecommitdiff
path: root/src/waypoint.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-08-23 16:34:05 +0000
committerfrosch <frosch@openttd.org>2008-08-23 16:34:05 +0000
commita813b6a854ffecafa2260177b1c1d81e31b45f28 (patch)
tree3da2113edeaae358b099bd876c7435fd509197a2 /src/waypoint.cpp
parent857df41a6dc84eae216bfc1116000f18ec683e5b (diff)
downloadopenttd-a813b6a854ffecafa2260177b1c1d81e31b45f28.tar.xz
(svn r14143) -Codechange: Recenter viewport of waypoint window when relocating the waypoint.
Diffstat (limited to 'src/waypoint.cpp')
-rw-r--r--src/waypoint.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/waypoint.cpp b/src/waypoint.cpp
index 1fa291b39..aaaedd73e 100644
--- a/src/waypoint.cpp
+++ b/src/waypoint.cpp
@@ -249,6 +249,7 @@ CommandCost CmdBuildTrainWaypoint(TileIndex tile, uint32 flags, uint32 p1, uint3
RedrawWaypointSign(wp);
wp->xy = tile;
+ InvalidateWindowData(WC_WAYPOINT_VIEW, wp->index);
}
const StationSpec* statspec;