diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/station_cmd.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 5fd0cf822..42c57f1f1 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1270,11 +1270,9 @@ CommandCost RemoveFromRailBaseStation(TileArea ta, SmallVector<T *, 4> &affected } } - if (keep_rail) { - MakeRailNormal(tile, owner, TrackToTrackBits(track), rt); - } else { - DoClearSquare(tile); - } + DoClearSquare(tile); + if (keep_rail) MakeRailNormal(tile, owner, TrackToTrackBits(track), rt); + st->rect.AfterRemoveTile(st, tile); AddTrackToSignalBuffer(tile, track, owner); YapfNotifyTrackLayoutChange(tile, track); |