mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r25156) -Fix [FS#5495, FS#5497]: if a vehicle had some cargo, and it would try to unload without actually unloading, the vehicle would just not load any cargo at the station (fonsinchen)
This commit is contained in:
parent
2d67f07975
commit
2b6669a7ff
|
@ -1220,7 +1220,7 @@ void PrepareUnload(Vehicle *front_v)
|
|||
v->cargo.Stage(
|
||||
HasBit(Station::Get(front_v->last_station_visited)->goods[v->cargo_type].acceptance_pickup, GoodsEntry::GES_ACCEPTANCE),
|
||||
front_v->last_station_visited, front_v->current_order.GetUnloadType());
|
||||
SetBit(v->vehicle_flags, VF_CARGO_UNLOADING);
|
||||
if (v->cargo.UnloadCount() > 0) SetBit(v->vehicle_flags, VF_CARGO_UNLOADING);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue