Rector block_brake_closed parameter from apply_block_brakes

To remark that is a variable, rather than a constant (closed)
This commit is contained in:
Daniel Trujillo 2016-07-09 19:23:57 +02:00
parent 3e782d9295
commit 13f6959ae3
1 changed files with 3 additions and 3 deletions

View File

@ -5407,10 +5407,10 @@ void apply_non_stop_block_brake(rct_vehicle *vehicle, bool block_brake_closed) {
*
* Modifies the train's velocity influenced by a block brake
*/
void apply_block_brakes(rct_vehicle *vehicle, bool block_brake_closed)
void apply_block_brakes(rct_vehicle *vehicle, bool is_block_brake_closed)
{
// If the site is in a "train blocking" state
if (block_brake_closed) {
if (is_block_brake_closed) {
// Slow it down till completely stop the car
RCT2_GLOBAL(0x00F64E18, uint32) |= VEHICLE_UPDATE_MOTION_TRACK_FLAG_10;
vehicle->acceleration = 0;
@ -5421,7 +5421,7 @@ void apply_block_brakes(rct_vehicle *vehicle, bool block_brake_closed)
vehicle->velocity -= vehicle->velocity >> 3;
}
} else {
apply_non_stop_block_brake(vehicle, block_brake_closed);
apply_non_stop_block_brake(vehicle, is_block_brake_closed);
}
}