Rename Peep::mechanic_time_sine_call to use TitleCase

This commit is contained in:
Tulio Leao committed 2020-06-06 11:53:51 -03:00
1 parent d195c9fb1d
commit 357db49819
2 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -664,7 +664,7 @@ struct Peep : SpriteBase
uint8_t step_progress;
union
{
uint16_t mechanic_time_since_call; // time getting to ride to fix
uint16_t MechanicTimeSinceCall; // time getting to ride to fix
uint16_t NextInQueue;
};
union
+6 -6
View File
@@ -1444,15 +1444,15 @@ void Staff::UpdateHeadingToInspect()
if (sub_state == 0)
{
mechanic_time_since_call = 0;
MechanicTimeSinceCall = 0;
peep_reset_pathfind_goal(this);
sub_state = 2;
}
if (sub_state <= 3)
{
mechanic_time_since_call++;
if (mechanic_time_since_call > 2500)
MechanicTimeSinceCall++;
if (MechanicTimeSinceCall > 2500)
{
if (ride->lifecycle_flags & RIDE_LIFECYCLE_DUE_INSPECTION && ride->mechanic_status == RIDE_MECHANIC_STATUS_HEADING)
{
@@ -1554,7 +1554,7 @@ void Staff::UpdateAnswering()
{
sub_state = 2;
peep_window_state_update(this);
mechanic_time_since_call = 0;
MechanicTimeSinceCall = 0;
peep_reset_pathfind_goal(this);
return;
}
@@ -1564,8 +1564,8 @@ void Staff::UpdateAnswering()
}
else if (sub_state <= 3)
{
mechanic_time_since_call++;
if (mechanic_time_since_call > 2500)
MechanicTimeSinceCall++;
if (MechanicTimeSinceCall > 2500)
{
ride->mechanic_status = RIDE_MECHANIC_STATUS_CALLING;
ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_MAINTENANCE;