Fix fixed broken restraints causing the train to get stuck in a loop

This commit is contained in:
duncanspumpkin 2016-01-09 16:17:04 +00:00
parent 8e0413bd2f
commit 326c1f276a
1 changed files with 2 additions and 4 deletions

View File

@ -714,7 +714,6 @@ static int vehicle_open_restraints(rct_vehicle* vehicle){
ride->breakdown_reason = ride->breakdown_reason_pending;
}
}
else{
if (vehicle->restraints_position + 20 > 0xFF){
@ -722,10 +721,9 @@ static int vehicle_open_restraints(rct_vehicle* vehicle){
continue;
}
vehicle->restraints_position += 20;
vehicle_invalidate(vehicle);
ebp++;
}
vehicle_invalidate(vehicle);
ebp++;
} while ((vehicle_id = vehicle->next_vehicle_on_train) != 0xFFFF);
return ebp;