diff --git a/src/openrct2/GameStateSnapshots.cpp b/src/openrct2/GameStateSnapshots.cpp index 66935c1448..43f4e0ff7c 100644 --- a/src/openrct2/GameStateSnapshots.cpp +++ b/src/openrct2/GameStateSnapshots.cpp @@ -304,7 +304,7 @@ struct GameStateSnapshots final : public IGameStateSnapshots COMPARE_FIELD(Peep, vandalism_seen); COMPARE_FIELD(Peep, voucher_type); COMPARE_FIELD(Peep, voucher_arguments); - COMPARE_FIELD(Peep, surroundings_thought_timeout); + COMPARE_FIELD(Peep, SurroundingsThoughtTimeout); COMPARE_FIELD(Peep, Angriness); COMPARE_FIELD(Peep, TimeLost); COMPARE_FIELD(Peep, DaysInQueue); diff --git a/src/openrct2/peep/Guest.cpp b/src/openrct2/peep/Guest.cpp index 16f0680077..8bb270408d 100644 --- a/src/openrct2/peep/Guest.cpp +++ b/src/openrct2/peep/Guest.cpp @@ -755,10 +755,10 @@ void Guest::Tick128UpdateGuest(int32_t index) if (state == PEEP_STATE_WALKING || state == PEEP_STATE_SITTING) { - surroundings_thought_timeout++; - if (surroundings_thought_timeout >= 18) + SurroundingsThoughtTimeout++; + if (SurroundingsThoughtTimeout >= 18) { - surroundings_thought_timeout = 0; + SurroundingsThoughtTimeout = 0; if (x != LOCATION_NULL) { PeepThoughtType thought_type = peep_assess_surroundings(x & 0xFFE0, y & 0xFFE0, z); diff --git a/src/openrct2/peep/Peep.cpp b/src/openrct2/peep/Peep.cpp index f20a25d338..d20ae7f671 100644 --- a/src/openrct2/peep/Peep.cpp +++ b/src/openrct2/peep/Peep.cpp @@ -1772,7 +1772,7 @@ Peep* Peep::Generate(const CoordsXYZ& coords) peep->no_of_food = 0; peep->no_of_drinks = 0; peep->no_of_souvenirs = 0; - peep->surroundings_thought_timeout = 0; + peep->SurroundingsThoughtTimeout = 0; peep->Angriness = 0; peep->TimeLost = 0; diff --git a/src/openrct2/peep/Peep.h b/src/openrct2/peep/Peep.h index ee69c0d032..6aa33c773d 100644 --- a/src/openrct2/peep/Peep.h +++ b/src/openrct2/peep/Peep.h @@ -738,7 +738,7 @@ struct Peep : SpriteBase uint8_t vandalism_seen; // 0xC0 vandalism thought timeout, 0x3F vandalism tiles seen uint8_t voucher_type; uint8_t voucher_arguments; // ride_id or string_offset_id - uint8_t surroundings_thought_timeout; + uint8_t SurroundingsThoughtTimeout; uint8_t Angriness; uint8_t TimeLost; // the time the peep has been lost when it reaches 254 generates the lost thought uint8_t DaysInQueue; diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index c6d3659b99..58460b7092 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -1497,7 +1497,7 @@ private: dst->voucher_arguments = src->voucher_arguments; dst->voucher_type = src->voucher_type; - dst->surroundings_thought_timeout = src->surroundings_thought_timeout; + dst->SurroundingsThoughtTimeout = src->surroundings_thought_timeout; dst->Angriness = src->angriness; dst->TimeLost = src->time_lost; diff --git a/src/openrct2/rct2/S6Exporter.cpp b/src/openrct2/rct2/S6Exporter.cpp index 34e49e276a..4e51e91970 100644 --- a/src/openrct2/rct2/S6Exporter.cpp +++ b/src/openrct2/rct2/S6Exporter.cpp @@ -1231,7 +1231,7 @@ void S6Exporter::ExportSpritePeep(RCT2SpritePeep* dst, const Peep* src) dst->vandalism_seen = src->vandalism_seen; dst->voucher_type = src->voucher_type; dst->voucher_arguments = src->voucher_arguments; - dst->surroundings_thought_timeout = src->surroundings_thought_timeout; + dst->surroundings_thought_timeout = src->SurroundingsThoughtTimeout; dst->angriness = src->Angriness; dst->time_lost = src->TimeLost; dst->days_in_queue = src->DaysInQueue; diff --git a/src/openrct2/rct2/S6Importer.cpp b/src/openrct2/rct2/S6Importer.cpp index a7969e3a68..760a678879 100644 --- a/src/openrct2/rct2/S6Importer.cpp +++ b/src/openrct2/rct2/S6Importer.cpp @@ -1496,7 +1496,7 @@ public: dst->vandalism_seen = src->vandalism_seen; dst->voucher_type = src->voucher_type; dst->voucher_arguments = src->voucher_arguments; - dst->surroundings_thought_timeout = src->surroundings_thought_timeout; + dst->SurroundingsThoughtTimeout = src->surroundings_thought_timeout; dst->Angriness = src->angriness; dst->TimeLost = src->time_lost; dst->DaysInQueue = src->days_in_queue; diff --git a/test/tests/S6ImportExportTests.cpp b/test/tests/S6ImportExportTests.cpp index 6a2105c42e..8ede42c145 100644 --- a/test/tests/S6ImportExportTests.cpp +++ b/test/tests/S6ImportExportTests.cpp @@ -257,7 +257,7 @@ static void CompareSpriteDataPeep(const Peep& left, const Peep& right) COMPARE_FIELD(vandalism_seen); COMPARE_FIELD(voucher_type); COMPARE_FIELD(voucher_arguments); - COMPARE_FIELD(surroundings_thought_timeout); + COMPARE_FIELD(SurroundingsThoughtTimeout); COMPARE_FIELD(Angriness); COMPARE_FIELD(TimeLost); COMPARE_FIELD(DaysInQueue);