mirror of https://github.com/OpenRCT2/OpenRCT2.git
Labeled lost_time_out
This commit is contained in:
parent
95ac8d67ee
commit
9e182df025
|
@ -2086,7 +2086,7 @@ static void vehicle_finish_departing(rct_vehicle* vehicle) {
|
|||
|
||||
vehicle->status = VEHICLE_STATUS_TRAVELLING;
|
||||
vehicle_invalidate_window(vehicle);
|
||||
vehicle->var_D0 = 0;
|
||||
vehicle->lost_time_out = 0;
|
||||
|
||||
vehicle->sub_state = 1;
|
||||
if (vehicle->velocity < 0)
|
||||
|
@ -2107,13 +2107,13 @@ static void vehicle_check_if_missing(rct_vehicle* vehicle) {
|
|||
if (!ride_type_has_flag(ride->type, RIDE_TYPE_FLAG_27))
|
||||
return;
|
||||
|
||||
vehicle->var_D0++;
|
||||
vehicle->lost_time_out++;
|
||||
if (ride->lifecycle_flags & RIDE_LIFECYCLE_11)
|
||||
return;
|
||||
|
||||
uint16 limit = ride->type == RIDE_TYPE_BOAT_RIDE ? 15360 : 9600;
|
||||
|
||||
if (vehicle->var_D0 <= limit)
|
||||
if (vehicle->lost_time_out <= limit)
|
||||
return;
|
||||
|
||||
ride->lifecycle_flags |= RIDE_LIFECYCLE_11;
|
||||
|
|
|
@ -166,7 +166,7 @@ typedef struct {
|
|||
uint8 num_laps; // 0xCE
|
||||
};
|
||||
uint8 pad_CF;
|
||||
uint16 var_D0;
|
||||
uint16 lost_time_out; // 0xD0
|
||||
sint8 var_D2;
|
||||
uint8 var_D3;
|
||||
uint8 var_D4;
|
||||
|
|
Loading…
Reference in New Issue