(svn r21145) -Fix: station list wasn't updated when a new cargo got a rating

This commit is contained in:
rubidium
2010-11-11 10:34:44 +00:00
parent 4dfdd4e9f9
commit 19f39f0fe0
2 changed files with 9 additions and 2 deletions

View File

@@ -1190,7 +1190,10 @@ static void LoadUnloadVehicle(Vehicle *v, int *cargo_left)
* accept cargo that was loaded at the same station. */
if ((u->current_order.GetUnloadType() & (OUFB_UNLOAD | OUFB_TRANSFER)) && (!accepted || v->cargo.Count() == cargo_count)) {
remaining = v->cargo.MoveTo(&ge->cargo, amount_unloaded, u->current_order.GetUnloadType() & OUFB_TRANSFER ? VehicleCargoList::MTA_TRANSFER : VehicleCargoList::MTA_UNLOAD, payment);
SetBit(ge->acceptance_pickup, GoodsEntry::PICKUP);
if (!HasBit(ge->acceptance_pickup, GoodsEntry::PICKUP)) {
InvalidateWindowData(WC_STATION_LIST, last_visited);
SetBit(ge->acceptance_pickup, GoodsEntry::PICKUP);
}
dirty_vehicle = dirty_station = true;
} else if (!accepted) {