forked from rosebudai/OpenRCT2-Web
Fix TrackElement.seatRotation setter rejecting every ride except mazes (#27234)
The maze check in ScTileElement::seatRotation_set was inverted, so the setter refused every track element except maze ones, the only ride type seat rotation does not apply to. Use the same check as the getter.
This commit is contained in:
1 parent
bc0b670487
commit
9507bf486a
3 files changed
+3
-2
No files matched your search
@@ -39,6 +39,7 @@
|
||||
- Fix: [#27136] Guests keep waiting at a level crossing after the train has passed, due to faulty iteration over the track the train has vacated.
|
||||
- Fix: [#27212] Chain lifts are blue in screenshots taken from the command line.
|
||||
- Fix: [#27218] Tile inspector coordinate spinners are too short for coordinate 1000.
|
||||
- Fix: [#27234] [Plugin] Setting `TrackElement.seatRotation` fails on every ride except mazes, where it does not apply.
|
||||
|
||||
0.5.5 (2026-09-06)
|
||||
------------------------------------------------------------------------
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace OpenRCT2
|
||||
namespace OpenRCT2::Scripting
|
||||
{
|
||||
// Grepped from CI (.github/workflows/publish-plugin-types.yml); keep the format `kPluginApiVersion = N`.
|
||||
static constexpr int32_t kPluginApiVersion = 123;
|
||||
static constexpr int32_t kPluginApiVersion = 124;
|
||||
|
||||
// Versions marking breaking changes.
|
||||
static constexpr int32_t kApiVersionPeepDeprecation = 33;
|
||||
|
||||
@@ -1100,7 +1100,7 @@ namespace OpenRCT2::Scripting
|
||||
}
|
||||
|
||||
const auto& rtd = ride->getRideTypeDescriptor();
|
||||
if (rtd.specialType != RtdSpecialType::maze)
|
||||
if (rtd.specialType == RtdSpecialType::maze)
|
||||
{
|
||||
auto& scriptEngine = GetContext()->GetScriptEngine();
|
||||
scriptEngine.LogPluginInfo("Cannot set 'seatRotation' property, TrackElement belongs to a maze.");
|
||||
|
||||
Reference in new issue
Block a user