diff options
author | rubidium <rubidium@openttd.org> | 2007-05-13 21:24:58 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-13 21:24:58 +0000 |
commit | 5ae882a18489459c5800b253e2504f4cde2800fa (patch) | |
tree | ff0aa591cfcd6b5c04bd802ebd5382cb99fe0c12 /src/vehicle.cpp | |
parent | eec76d9b49a16ef1a4eb0b437bc65a8a81dfe107 (diff) | |
download | openttd-5ae882a18489459c5800b253e2504f4cde2800fa.tar.xz |
(svn r9831) -Codechange: more refactoring of the loading/unloading.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 89757e7e7..9048d3bd0 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2941,7 +2941,9 @@ void Vehicle::HandleLoading(bool mode) /* Load/unload the vehicle; when it actually did something * we do not leave the station. */ - if (LoadUnloadVehicle(this)) return; + LoadUnloadVehicle(this); + + if (!HASBIT(this->vehicle_flags, VF_LOADING_FINISHED)) return; this->PlayLeaveStationSound(); |