(svn r9831) -Codechange: more refactoring of the loading/unloading.

This commit is contained in:
rubidium
2007-05-13 21:24:58 +00:00
parent eec76d9b49
commit 5ae882a184
3 changed files with 42 additions and 99 deletions

View File

@@ -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();