mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-19 18:35:48 +01:00
(svn r1920) -Fix: no longer a station where you only unload is bad for your town-rating
This commit is contained in:
parent
862faa16c0
commit
ae4995c671
@ -1360,6 +1360,8 @@ int LoadUnloadVehicle(Vehicle *v)
|
|||||||
if (v->cargo_count != 0) {
|
if (v->cargo_count != 0) {
|
||||||
if (v->cargo_source != last_visited && ge->waiting_acceptance & 0x8000) {
|
if (v->cargo_source != last_visited && ge->waiting_acceptance & 0x8000) {
|
||||||
// deliver goods to the station
|
// deliver goods to the station
|
||||||
|
st->time_since_unload = 0;
|
||||||
|
|
||||||
unloading_time += v->cargo_count; /* TTDBUG: bug in original TTD */
|
unloading_time += v->cargo_count; /* TTDBUG: bug in original TTD */
|
||||||
profit += DeliverGoods(v->cargo_count, v->cargo_type, v->cargo_source, last_visited, v->cargo_days);
|
profit += DeliverGoods(v->cargo_count, v->cargo_type, v->cargo_source, last_visited, v->cargo_days);
|
||||||
result |= 1;
|
result |= 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user