Fix #8571: Redundant comparison in Station.cpp

This commit is contained in:
Michael Stowe authored and GitHub committed 2020-04-25 00:08:04 +02:00
1 parent 2a95a9c2af
commit f281aa1a80
1 file changed
+1 -2
+1 -2
View File
@@ -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