Correct spelling of 'block brakes', use constant

This commit is contained in:
Gymnasiast 2017-01-25 02:32:08 +01:00
parent 5424e7774c
commit 8f81485c46
2 changed files with 3 additions and 3 deletions

View File

@ -1275,7 +1275,7 @@ static money32 track_place(sint32 rideIndex, sint32 type, sint32 originX, sint32
ride->cable_lift_y = y;
ride->cable_lift_z = baseZ;
break;
case 0xD8:
case TRACK_ELEM_BLOCK_BRAKES:
ride->num_block_brakes++;
ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_OPERATING;
ride->mode = RIDE_MODE_CONTINUOUS_CIRCUIT_BLOCK_SECTIONED;

View File

@ -5987,7 +5987,7 @@ static void update_velocity(rct_vehicle *vehicle)
_vehicleVelocityF64E0C = (nextVelocity >> 10) * 42;
}
static void vehicle_update_block_breaks_open_previous_section(rct_vehicle *vehicle, rct_map_element *mapElement)
static void vehicle_update_block_brakes_open_previous_section(rct_vehicle *vehicle, rct_map_element *mapElement)
{
sint32 x = vehicle->track_x;
sint32 y = vehicle->track_y;
@ -7325,7 +7325,7 @@ static bool vehicle_update_track_motion_forwards_get_new_track(rct_vehicle *vehi
}
}
map_invalidate_element(vehicle->track_x, vehicle->track_z, mapElement);
vehicle_update_block_breaks_open_previous_section(vehicle, mapElement);
vehicle_update_block_brakes_open_previous_section(vehicle, mapElement);
}
}