1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Rename Peep::mechanic_time_sine_call to use TitleCase

This commit is contained in:
Tulio Leao
2020-06-06 11:24:29 -03:00
parent d195c9fb1d
commit 357db49819
2 changed files with 7 additions and 7 deletions

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

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;