diff options
author | smatz <smatz@openttd.org> | 2008-01-15 15:00:01 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-01-15 15:00:01 +0000 |
commit | 245f05a7cc3b333387da0d31b7f797bebf0720fb (patch) | |
tree | 3fac3a5889143b62cffcafd37b2c29c84ae62f39 /src/waypoint.cpp | |
parent | 932c586dfe3713e27b86286fafeea56b2958fa15 (diff) | |
download | openttd-245f05a7cc3b333387da0d31b7f797bebf0720fb.tar.xz |
(svn r11864) -Codechange: pass owner whose signals we will update instead of complex detection later
Diffstat (limited to 'src/waypoint.cpp')
-rw-r--r-- | src/waypoint.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/waypoint.cpp b/src/waypoint.cpp index bf2c7c06e..1af10cb07 100644 --- a/src/waypoint.cpp +++ b/src/waypoint.cpp @@ -286,6 +286,7 @@ CommandCost RemoveTrainWaypoint(TileIndex tile, uint32 flags, bool justremove) if (flags & DC_EXEC) { Track track = GetRailWaypointTrack(tile); + Owner owner = GetTileOwner(tile); // cannot use _current_player because of possible floods wp = GetWaypointByTile(tile); wp->deleted = 30; // let it live for this many days before we do the actual deletion. @@ -296,7 +297,7 @@ CommandCost RemoveTrainWaypoint(TileIndex tile, uint32 flags, bool justremove) MarkTileDirtyByTile(tile); } else { DoClearSquare(tile); - SetSignalsOnBothDir(tile, track); + SetSignalsOnBothDir(tile, track, owner); } YapfNotifyTrackLayoutChange(tile, track); } |