mirror of https://github.com/OpenRCT2/OpenRCT2.git
fix #1630
This commit is contained in:
parent
6308e8ee0f
commit
2d770093e9
|
@ -301,6 +301,11 @@ static void openrct2_loop()
|
|||
openrct2_reset_object_tween_locations();
|
||||
}
|
||||
|
||||
// Limit number of updates per loop (any long pauses or debugging can make this update for a very long time)
|
||||
if (currentTick - uncapTick > 25 * 60) {
|
||||
uncapTick = currentTick - 25 - 1;
|
||||
}
|
||||
|
||||
while (uncapTick <= currentTick && currentTick - uncapTick > 25) {
|
||||
// Get the original position of each sprite
|
||||
for (uint16 i = 0; i < MAX_SPRITES; i++) {
|
||||
|
|
|
@ -299,6 +299,7 @@ static void ride_ratings_update_state_5()
|
|||
|
||||
x = trackBeginEnd.begin_x;
|
||||
y = trackBeginEnd.begin_y;
|
||||
z = trackBeginEnd.begin_z;
|
||||
if (x == _rideRatingsProximityStartX && y == _rideRatingsProximityStartY && z == _rideRatingsProximityStartZ) {
|
||||
_rideRatingsState = RIDE_RATINGS_STATE_CALCULATE;
|
||||
return;
|
||||
|
@ -306,7 +307,7 @@ static void ride_ratings_update_state_5()
|
|||
_rideRatingsProximityX = x;
|
||||
_rideRatingsProximityY = y;
|
||||
_rideRatingsProximityZ = z;
|
||||
_rideRatingsProximityTrackType = mapElement->properties.track.type;
|
||||
_rideRatingsProximityTrackType = trackBeginEnd.begin_element->properties.track.type;
|
||||
return;
|
||||
}
|
||||
} while (!map_element_is_last_for_tile(mapElement++));
|
||||
|
|
Loading…
Reference in New Issue