mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Fix cable lift data logging
This commit is contained in:
@@ -2706,7 +2706,7 @@ void ride_measurement_update(rct_ride_measurement *measurement)
|
|||||||
vehicle = GET_VEHICLE(spriteIndex);
|
vehicle = GET_VEHICLE(spriteIndex);
|
||||||
|
|
||||||
if (measurement->flags & RIDE_MEASUREMENT_FLAG_UNLOADING) {
|
if (measurement->flags & RIDE_MEASUREMENT_FLAG_UNLOADING) {
|
||||||
if (vehicle->status != VEHICLE_STATUS_DEPARTING && vehicle->status != VEHICLE_STATUS_STOPPING)
|
if (vehicle->status != VEHICLE_STATUS_DEPARTING && vehicle->status != VEHICLE_STATUS_TRAVELLING_CABLE_LIFT)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
measurement->flags &= ~RIDE_MEASUREMENT_FLAG_UNLOADING;
|
measurement->flags &= ~RIDE_MEASUREMENT_FLAG_UNLOADING;
|
||||||
@@ -2798,7 +2798,7 @@ void ride_measurements_update()
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
vehicle = GET_VEHICLE(spriteIndex);
|
vehicle = GET_VEHICLE(spriteIndex);
|
||||||
if (vehicle->status == VEHICLE_STATUS_DEPARTING || vehicle->status == VEHICLE_STATUS_STOPPING) {
|
if (vehicle->status == VEHICLE_STATUS_DEPARTING || vehicle->status == VEHICLE_STATUS_TRAVELLING_CABLE_LIFT) {
|
||||||
measurement->vehicle_index = j;
|
measurement->vehicle_index = j;
|
||||||
measurement->current_station = vehicle->current_station;
|
measurement->current_station = vehicle->current_station;
|
||||||
measurement->flags |= RIDE_MEASUREMENT_FLAG_RUNNING;
|
measurement->flags |= RIDE_MEASUREMENT_FLAG_RUNNING;
|
||||||
|
|||||||
Reference in New Issue
Block a user