1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00

Use regular interval for swing sprite threshold (#25171)

* use regular interval for swing sprite threshold

* bump network

* bump park file version
This commit is contained in:
spacek531
2025-09-20 00:39:50 -07:00
committed by GitHub
parent 263857a752
commit e5aa3b33f2
3 changed files with 8 additions and 8 deletions

View File

@@ -47,7 +47,7 @@
// It is used for making sure only compatible builds get connected, even within
// single OpenRCT2 version.
constexpr uint8_t kStreamVersion = 5;
constexpr uint8_t kStreamVersion = 6;
const std::string kStreamID = std::string(kOpenRCT2Version) + "-" + std::to_string(kStreamVersion);

View File

@@ -21,7 +21,7 @@ namespace OpenRCT2
struct ObjectRepositoryItem;
// Current version that is saved.
constexpr uint32_t kParkFileCurrentVersion = 58;
constexpr uint32_t kParkFileCurrentVersion = 59;
// The minimum version that is forwards compatible with the current version.
constexpr uint32_t kParkFileMinVersion = 57;

View File

@@ -5788,19 +5788,19 @@ int32_t Vehicle::GetSwingAmount() const
static uint8_t GetSwingSprite(int16_t swingPosition)
{
if (swingPosition < -10012)
if (swingPosition < -10010)
return 11;
if (swingPosition > 10012)
if (swingPosition > 10010)
return 12;
if (swingPosition < -8191)
if (swingPosition < -8190)
return 9;
if (swingPosition > 8191)
if (swingPosition > 8190)
return 10;
if (swingPosition < -6371)
if (swingPosition < -6370)
return 7;
if (swingPosition > 6371)
if (swingPosition > 6370)
return 8;
if (swingPosition < -4550)