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

This commit is contained in:
lewyche authored and GitHub committed 2024-09-29 10:02:02 -03:00
1 parent e3dc02441a
commit 0f58efe198
3 files changed
+3 -2

No files matched your search

+1
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.
+1 -1
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);
+1 -1
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++;