Labeled lost_time_out

This commit is contained in:
duncanspumpkin committed 2015-12-05 10:49:21 +00:00
1 parent 95ac8d67ee
commit 9e182df025
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -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;
+1 -1
View File
@@ -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;