diff options
author | rubidium <rubidium@openttd.org> | 2007-05-14 20:17:26 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-14 20:17:26 +0000 |
commit | 394946d4bcfeeeb2ea749761cd5be1adca063638 (patch) | |
tree | 8126534b115a5bba6f81a916000b728dcd2bbbdb | |
parent | 49476d46e6fccec683a3018a112a547f823cb4b0 (diff) | |
download | openttd-394946d4bcfeeeb2ea749761cd5be1adca063638.tar.xz |
(svn r9839) -Fix: vehicles in old savegames could leave the station because the changed loading algorithm thought it was already finished.
-rw-r--r-- | src/openttd.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 79bf7eced..0cd1d5b49 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1934,6 +1934,10 @@ bool AfterLoadGame() !(v->vehstatus & (VS_STOPPED | VS_CRASHED)) && // not stopped or crashed v->current_order.type == OT_LOADING) { // loading GetStation(v->last_station_visited)->loading_vehicles.push_back(v); + + /* The loading finished flag is *only* set when actually completely + * finished. Because the vehicle is loading, it is not finished. */ + CLRBIT(v->vehicle_flags, VF_LOADING_FINISHED); } } } |