Mercurial > hg > openttd
changeset 13273:f89ea7440246 draft
(svn r17782) -Fix [FS#3270]: animation wasn't removed from station tiles when keeping the rail during removal
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sat, 17 Oct 2009 08:12:39 +0000 |
parents | e53340c847ca |
children | 748a228ef915 |
files | src/station_cmd.cpp |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1270,11 +1270,9 @@ } } - 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);