diff options
author | rubidium <rubidium@openttd.org> | 2009-10-17 08:12:39 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-10-17 08:12:39 +0000 |
commit | 29e173185a337590e48495919f9667c1c2c0026a (patch) | |
tree | f4bad5429f1cf7a4d8025e34b61a1c1d1a339ef7 /src | |
parent | 06e5ae020a92ed6902f6da60e0d30b576b3e7d38 (diff) | |
download | openttd-29e173185a337590e48495919f9667c1c2c0026a.tar.xz |
(svn r17782) -Fix [FS#3270]: animation wasn't removed from station tiles when keeping the rail during removal
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); |