1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 21:43:06 +01:00

Fix #22133: Ride time is incorrect for extremely low speeds (#22311)

This commit is contained in:
lewyche
2024-09-29 09:02:02 -04:00
committed by GitHub
parent e3dc02441a
commit 0f58efe198
3 changed files with 3 additions and 2 deletions

View File

@@ -16,6 +16,7 @@
- Fix: [#15406] Tunnels on steep Side-Friction track are drawn too low.
- Fix: [#21959] “Save this before...?” message does not appear when selecting “New Game”.
- Fix: [#22072] Objective date string and staff tenure date string cannot be reused on agglutinative languages.
- Fix: [#22133] Ride time is incorrect for extremely slow speeds.
- Fix: [#22231] Invalid object version can cause a crash.
- Fix: [#22562] Bottom row of pixels is not always drawn by the OpenGL renderer when zoomed in.
- Fix: [#22653] Missing water tiles in RCT1 and RCT2 scenarios.

View File

@@ -49,7 +49,7 @@ using namespace OpenRCT2;
// It is used for making sure only compatible builds get connected, even within
// single OpenRCT2 version.
constexpr uint8_t kNetworkStreamVersion = 1;
constexpr uint8_t kNetworkStreamVersion = 2;
const std::string kNetworkStreamID = std::string(OPENRCT2_VERSION) + "-" + std::to_string(kNetworkStreamVersion);

View File

@@ -848,7 +848,7 @@ void Vehicle::UpdateMeasurements()
curRide->max_speed = absVelocity;
}
if (curRide->average_speed_test_timeout == 0 && absVelocity > 0x8000)
if (curRide->average_speed_test_timeout == 0 && absVelocity > 0)
{
curRide->average_speed = AddClamp<int32_t>(curRide->average_speed, absVelocity);
stationForTestSegment.SegmentTime++;