mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 06:23:04 +01:00
Fix #8571: Redundant comparison in Station.cpp
This commit is contained in:
@@ -96,7 +96,6 @@ static void ride_update_station_bumpercar(Ride* ride, StationIndex stationIndex)
|
||||
if (ride->lifecycle_flags & RIDE_LIFECYCLE_PASS_STATION_NO_STOPPING)
|
||||
{
|
||||
int32_t dx = ride->time_limit * 32;
|
||||
int32_t dl = dx & 0xFF;
|
||||
int32_t dh = (dx >> 8) & 0xFF;
|
||||
for (size_t i = 0; i < ride->num_vehicles; i++)
|
||||
{
|
||||
@@ -105,7 +104,7 @@ static void ride_update_station_bumpercar(Ride* ride, StationIndex stationIndex)
|
||||
continue;
|
||||
|
||||
Vehicle* vehicle = GET_VEHICLE(vehicleSpriteIdx);
|
||||
if (vehicle->var_CE < dh || (vehicle->var_CE < dh && vehicle->sub_state > dl))
|
||||
if (vehicle->var_CE < dh)
|
||||
continue;
|
||||
|
||||
// End match
|
||||
|
||||
Reference in New Issue
Block a user