summaryrefslogtreecommitdiff
path: root/src/waypoint_base.h
diff options
context:
space:
mode:
authorstormcone <48624099+stormcone@users.noreply.github.com>2019-07-07 19:44:08 +0200
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-07-22 21:41:08 +0200
commit2817cd41f1b42a7d3901a92c6cda85a90765600a (patch)
tree83bb45e0cf7d8f31c685ab66b25be1b3dfc1bb3d /src/waypoint_base.h
parent196d586849684e62aa9a40093f2a1ce60e1cd53f (diff)
downloadopenttd-2817cd41f1b42a7d3901a92c6cda85a90765600a.tar.xz
Fix #7250: Viewport kdtree not being updated for waypoints when sign moved.
Code based on the patch by JGRennison. JGRennison/OpenTTD-patches@ac84f34062ef1f3ffcdee49dc595d574e4efb4d5
Diffstat (limited to 'src/waypoint_base.h')
-rw-r--r--src/waypoint_base.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/waypoint_base.h b/src/waypoint_base.h
index c11c2f2b2..be1d0bd0d 100644
--- a/src/waypoint_base.h
+++ b/src/waypoint_base.h
@@ -27,6 +27,8 @@ struct Waypoint FINAL : SpecializedStation<Waypoint, true> {
void UpdateVirtCoord() override;
+ void MoveSign(TileIndex new_xy) override;
+
inline bool TileBelongsToRailStation(TileIndex tile) const override
{
return IsRailWaypointTile(tile) && GetStationIndex(tile) == this->index;