Fix #2719. Vehicles getting stuck in unloading passengers mode

This commit is contained in:
duncanspumpkin 2016-01-14 18:40:35 +00:00
parent 23dbde38e2
commit 937de36e49
1 changed files with 3 additions and 3 deletions

View File

@ -1321,7 +1321,7 @@ static void train_ready_to_depart(rct_vehicle* vehicle, uint8 num_peeps_on_train
if (vehicle->peep[peep] != 0xFFFF){ if (vehicle->peep[peep] != 0xFFFF){
ride->train_at_station[vehicle->current_station] = 0xFF; ride->train_at_station[vehicle->current_station] = 0xFF;
vehicle->status = VEHICLE_STATUS_UNLOADING_PASSENGERS; vehicle->status = VEHICLE_STATUS_UNLOADING_PASSENGERS;
vehicle->sub_state = 2; vehicle->sub_state = 0;
vehicle_invalidate_window(vehicle); vehicle_invalidate_window(vehicle);
return; return;
} }
@ -1338,8 +1338,8 @@ static void train_ready_to_depart(rct_vehicle* vehicle, uint8 num_peeps_on_train
return; return;
ride->train_at_station[vehicle->current_station] = 0xFF; ride->train_at_station[vehicle->current_station] = 0xFF;
vehicle->status = VEHICLE_STATUS_UNLOADING_PASSENGERS; vehicle->status = VEHICLE_STATUS_WAITING_FOR_PASSENGERS;
vehicle->sub_state = 2; vehicle->sub_state = 0;
vehicle_invalidate_window(vehicle); vehicle_invalidate_window(vehicle);
} }