diff options
author | rubidium <rubidium@openttd.org> | 2010-11-11 10:34:44 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-11-11 10:34:44 +0000 |
commit | 67d071d0338affe7b8ed565a72150ff5d7513737 (patch) | |
tree | 38cd0bd3065a5e45463748078937e848c416d82a /src/station_cmd.cpp | |
parent | e745bd9815e8a92064c3fdb7b271cfe5ac80a95f (diff) | |
download | openttd-67d071d0338affe7b8ed565a72150ff5d7513737.tar.xz |
(svn r21145) -Fix: station list wasn't updated when a new cargo got a rating
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 1ce324cdf..fd3f2eab5 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -3201,7 +3201,11 @@ static uint UpdateStationWaiting(Station *st, CargoID type, uint amount, SourceT if (amount == 0) return 0; ge.cargo.Append(new CargoPacket(st->index, st->xy, amount, source_type, source_id)); - SetBit(ge.acceptance_pickup, GoodsEntry::PICKUP); + + if (!HasBit(ge.acceptance_pickup, GoodsEntry::PICKUP)) { + InvalidateWindowData(WC_STATION_LIST, st->index); + SetBit(ge.acceptance_pickup, GoodsEntry::PICKUP); + } TriggerStationAnimation(st, st->xy, SAT_NEW_CARGO, type); AirportAnimationTrigger(st, AAT_STATION_NEW_CARGO, type); |