From 29e173185a337590e48495919f9667c1c2c0026a Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 17 Oct 2009 08:12:39 +0000 Subject: (svn r17782) -Fix [FS#3270]: animation wasn't removed from station tiles when keeping the rail during removal --- src/station_cmd.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') 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 &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); -- cgit v1.2.3-70-g09d2