mirror of https://github.com/OpenRCT2/OpenRCT2.git
Rename unkF64E35 to stationBrakesWork
This commit is contained in:
parent
2a9481bb99
commit
d0436c7379
|
@ -3904,7 +3904,7 @@ void Vehicle::UpdateArriving()
|
||||||
if (curRide == nullptr)
|
if (curRide == nullptr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
uint8_t unkF64E35 = 1;
|
bool stationBrakesWork = true;
|
||||||
uint32_t curFlags = 0;
|
uint32_t curFlags = 0;
|
||||||
|
|
||||||
switch (curRide->mode)
|
switch (curRide->mode)
|
||||||
|
@ -3942,7 +3942,7 @@ void Vehicle::UpdateArriving()
|
||||||
if (hasBrakesFailure && curRide->inspection_station == current_station
|
if (hasBrakesFailure && curRide->inspection_station == current_station
|
||||||
&& curRide->mechanic_status != RIDE_MECHANIC_STATUS_HAS_FIXED_STATION_BRAKES)
|
&& curRide->mechanic_status != RIDE_MECHANIC_STATUS_HAS_FIXED_STATION_BRAKES)
|
||||||
{
|
{
|
||||||
unkF64E35 = 0;
|
stationBrakesWork = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
rct_ride_entry* rideEntry = GetRideEntry();
|
rct_ride_entry* rideEntry = GetRideEntry();
|
||||||
|
@ -3967,7 +3967,7 @@ void Vehicle::UpdateArriving()
|
||||||
else
|
else
|
||||||
velocity_diff /= 16;
|
velocity_diff /= 16;
|
||||||
|
|
||||||
if (unkF64E35 == 0)
|
if (!stationBrakesWork)
|
||||||
{
|
{
|
||||||
goto loc_6D8E36;
|
goto loc_6D8E36;
|
||||||
}
|
}
|
||||||
|
@ -4000,7 +4000,7 @@ void Vehicle::UpdateArriving()
|
||||||
else
|
else
|
||||||
velocity_diff /= 16;
|
velocity_diff /= 16;
|
||||||
|
|
||||||
if (unkF64E35 == 0)
|
if (!stationBrakesWork)
|
||||||
{
|
{
|
||||||
goto loc_6D8E36;
|
goto loc_6D8E36;
|
||||||
}
|
}
|
||||||
|
@ -4031,13 +4031,13 @@ void Vehicle::UpdateArriving()
|
||||||
|
|
||||||
loc_6D8E36:
|
loc_6D8E36:
|
||||||
curFlags = UpdateTrackMotion(nullptr);
|
curFlags = UpdateTrackMotion(nullptr);
|
||||||
if (curFlags & VEHICLE_UPDATE_MOTION_TRACK_FLAG_VEHICLE_COLLISION && unkF64E35 == 0)
|
if (curFlags & VEHICLE_UPDATE_MOTION_TRACK_FLAG_VEHICLE_COLLISION && !stationBrakesWork)
|
||||||
{
|
{
|
||||||
UpdateCollisionSetup();
|
UpdateCollisionSetup();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (curFlags & VEHICLE_UPDATE_MOTION_TRACK_FLAG_VEHICLE_AT_STATION && unkF64E35 == 0)
|
if (curFlags & VEHICLE_UPDATE_MOTION_TRACK_FLAG_VEHICLE_AT_STATION && !stationBrakesWork)
|
||||||
{
|
{
|
||||||
SetState(Vehicle::Status::Departing, 1);
|
SetState(Vehicle::Status::Departing, 1);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue