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

This commit is contained in:
Michael Steenbeek authored and GitHub committed 2020-01-25 12:24:04 +01:00
1 parent 4a22158387
commit 2b6e925744
2 files changed
+2 -2

No files matched your search

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