Fix #15487: map animations do not work correctly in vanilla RCT2 (#15492)

Co-authored-by: duncanspumpkin <duncanspumpkin@users.noreply.github.com>

Co-authored-by: duncanspumpkin <duncanspumpkin@users.noreply.github.com>
This commit is contained in:
Michael Steenbeek 2021-09-30 08:40:58 +02:00 committed by GitHub
parent ce1d3e9c83
commit bfe7caacd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -27,6 +27,7 @@
- Fix: [#15255] Tile Inspector shows banner information on walls that do not contain one.
- Fix: [#15257] Chat icon shows in scenario/track editor. Other icons don't disable when deactivated in options menu.
- Fix: [#15289] Unexpected behavior with duplicated banners which also caused desyncs in multiplayer.
- Fix: [#15487] Map animations do not work correctly when loading an exported SV6 file in vanilla RCT2.
- Improved: [#3417] Crash dumps are now placed in their own folder.
- Change: [#8601] Revert ToonTower base block fix to re-enable support blocking.
- Change: [#15174] [Plugin] Deprecate the type "peep" and add support to target a specific scripting api version.

View File

@ -1761,9 +1761,10 @@ void S6Exporter::ExportMapAnimations()
auto& dst = _s6.map_animations[i];
dst.type = src.type;
// In RCT12MapAnimation, the x and y coordinates use big coords, while the z coordinate uses small coords.
dst.x = src.location.x;
dst.y = src.location.y;
dst.baseZ = src.location.z;
dst.baseZ = src.location.z / COORDS_Z_STEP;
}
}