Fix #7250: Viewport kdtree not being updated for waypoints when sign moved.
Code based on the patch by JGRennison. JGRennison/OpenTTD-patches@ac84f34062
This commit is contained in:

committed by
Niels Martin Hansen

parent
196d586849
commit
2817cd41f1
@@ -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;
|
||||
|
Reference in New Issue
Block a user