Fix testing giga coaster with cable lift crashing the game (#10620)

This commit is contained in:
Michael Steenbeek 2020-01-25 12:24:04 +01:00 committed by GitHub
parent 4a22158387
commit 2b6e925744
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -743,7 +743,7 @@ void S6Exporter::ExportRide(rct2_ride* dst, const Ride* src)
dst->num_circuits = src->num_circuits;
dst->cable_lift_x = static_cast<int16_t>(src->CableLiftLoc.x);
dst->cable_lift_y = static_cast<int16_t>(src->CableLiftLoc.y);
dst->cable_lift_z = static_cast<int16_t>(src->CableLiftLoc.z);
dst->cable_lift_z = static_cast<int16_t>(src->CableLiftLoc.z / COORDS_Z_STEP);
// pad_1FD;
dst->cable_lift = src->cable_lift;

View File

@ -760,7 +760,7 @@ public:
dst->total_air_time = src->total_air_time;
dst->current_test_station = src->current_test_station;
dst->num_circuits = src->num_circuits;
dst->CableLiftLoc = { src->cable_lift_x, src->cable_lift_y, src->cable_lift_z };
dst->CableLiftLoc = { src->cable_lift_x, src->cable_lift_y, src->cable_lift_z * COORDS_Z_STEP };
// pad_1FD;
dst->cable_lift = src->cable_lift;