mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 23:34:37 +01:00
Rename some Peep member variables to use TitleCase (#11931)
* Rename Peep::destination_tolerance to use TitleCase * Rename Peep::destination_y to use TitleCase * Rename Peep::destination_x to use TitleCase * Rename Peep::trousers_colour to use Title Case * Rename Peep::tshirt_colour to use TitleCase * Rename Peep::no_of_rides to use Title Case * Rename Peep::staff_type to use TitleCase * Rename Peep::type to use TitleCase * Rename Peep::sprite_type to use TitleCase * Rename Peep::sub_state to use TitleCase * Rename Peep::state to use TitleCase * Rename Peep::outside_of_park to use TitleCase * Rename Peep::next_flags to use TitleCase * Rename Peep::name to use TitleCase * Rename Peep::NoOfRides to GuestNoOfRides * Rename Peep::Type to AssignedPeepType * Rename Peep::GuestNoOfRides to GuestNumRides
This commit is contained in:
@@ -443,7 +443,7 @@ static int32_t cc_staff(InteractiveConsole& console, const arguments_t& argv)
|
||||
{
|
||||
auto name = peep->GetName();
|
||||
console.WriteFormatLine(
|
||||
"staff id %03d type: %02u energy %03u name %s", i, peep->staff_type, peep->Energy, name.c_str());
|
||||
"staff id %03d type: %02u energy %03u name %s", i, peep->StaffType, peep->Energy, name.c_str());
|
||||
}
|
||||
}
|
||||
else if (argv[0] == "set")
|
||||
@@ -491,8 +491,8 @@ static int32_t cc_staff(InteractiveConsole& console, const arguments_t& argv)
|
||||
return 1;
|
||||
}
|
||||
peep = GET_PEEP(int_val[0]);
|
||||
bool is_entertainer = peep != nullptr && peep->type == PEEP_TYPE_STAFF
|
||||
&& peep->staff_type == STAFF_TYPE_ENTERTAINER;
|
||||
bool is_entertainer = peep != nullptr && peep->AssignedPeepType == PEEP_TYPE_STAFF
|
||||
&& peep->StaffType == STAFF_TYPE_ENTERTAINER;
|
||||
if (!is_entertainer)
|
||||
{
|
||||
console.WriteLineError("Specified staff is not entertainer");
|
||||
@@ -1595,7 +1595,7 @@ static int32_t cc_mp_desync(InteractiveConsole& console, const arguments_t& argv
|
||||
auto* peep = peeps[0];
|
||||
if (peeps.size() > 1)
|
||||
peep = peeps[util_rand() % peeps.size() - 1];
|
||||
peep->tshirt_colour = util_rand() & 0xFF;
|
||||
peep->TshirtColour = util_rand() & 0xFF;
|
||||
invalidate_sprite_0(peep);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user