diff --git a/src/openrct2-ui/windows/GameBottomToolbar.cpp b/src/openrct2-ui/windows/GameBottomToolbar.cpp index dd1fef3035..4ae4dd95d7 100644 --- a/src/openrct2-ui/windows/GameBottomToolbar.cpp +++ b/src/openrct2-ui/windows/GameBottomToolbar.cpp @@ -635,21 +635,21 @@ static void window_game_bottom_toolbar_draw_news_item(rct_drawpixelinfo* dpi, rc if (image_id_base >= 0x2A1D && image_id_base < 0x2A3D) { image_id_base += 32; - image_id_base |= SPRITE_ID_PALETTE_COLOUR_1(peep->balloon_colour); + image_id_base |= SPRITE_ID_PALETTE_COLOUR_1(peep->BalloonColour); gfx_draw_sprite(&cliped_dpi, image_id_base, clip_x, clip_y, 0); } else if (image_id_base >= 0x2BBD && image_id_base < 0x2BDD) { image_id_base += 32; - image_id_base |= SPRITE_ID_PALETTE_COLOUR_1(peep->umbrella_colour); + image_id_base |= SPRITE_ID_PALETTE_COLOUR_1(peep->UmbrellaColour); gfx_draw_sprite(&cliped_dpi, image_id_base, clip_x, clip_y, 0); } else if (image_id_base >= 0x29DD && image_id_base < 0x29FD) { image_id_base += 32; - image_id_base |= SPRITE_ID_PALETTE_COLOUR_1(peep->hat_colour); + image_id_base |= SPRITE_ID_PALETTE_COLOUR_1(peep->HatColour); gfx_draw_sprite(&cliped_dpi, image_id_base, clip_x, clip_y, 0); } diff --git a/src/openrct2-ui/windows/Guest.cpp b/src/openrct2-ui/windows/Guest.cpp index f2e48afedd..2511e3fa04 100644 --- a/src/openrct2-ui/windows/Guest.cpp +++ b/src/openrct2-ui/windows/Guest.cpp @@ -894,7 +894,7 @@ static void window_guest_overview_tab_paint(rct_window* w, rct_drawpixelinfo* dp if (animationFrame >= 0x2A1D && animationFrame < 0x2A3D) { animationFrame += 32; - animationFrame |= SPRITE_ID_PALETTE_COLOUR_1(peep->balloon_colour); + animationFrame |= SPRITE_ID_PALETTE_COLOUR_1(peep->BalloonColour); gfx_draw_sprite(&clip_dpi, animationFrame, x, y, 0); } @@ -902,7 +902,7 @@ static void window_guest_overview_tab_paint(rct_window* w, rct_drawpixelinfo* dp if (animationFrame >= 0x2BBD && animationFrame < 0x2BDD) { animationFrame += 32; - animationFrame |= SPRITE_ID_PALETTE_COLOUR_1(peep->umbrella_colour); + animationFrame |= SPRITE_ID_PALETTE_COLOUR_1(peep->UmbrellaColour); gfx_draw_sprite(&clip_dpi, animationFrame, x, y, 0); } @@ -910,7 +910,7 @@ static void window_guest_overview_tab_paint(rct_window* w, rct_drawpixelinfo* dp if (animationFrame >= 0x29DD && animationFrame < 0x29FD) { animationFrame += 32; - animationFrame |= SPRITE_ID_PALETTE_COLOUR_1(peep->hat_colour); + animationFrame |= SPRITE_ID_PALETTE_COLOUR_1(peep->HatColour); gfx_draw_sprite(&clip_dpi, animationFrame, x, y, 0); } } @@ -1698,9 +1698,9 @@ void window_guest_rides_paint(rct_window* w, rct_drawpixelinfo* dpi) y = w->windowPos.y + window_guest_rides_widgets[WIDX_PAGE_BACKGROUND].bottom - 12; set_format_arg(0, rct_string_id, STR_PEEP_FAVOURITE_RIDE_NOT_AVAILABLE); - if (peep->favourite_ride != RIDE_ID_NULL) + if (peep->FavouriteRide != RIDE_ID_NULL) { - auto ride = get_ride(peep->favourite_ride); + auto ride = get_ride(peep->FavouriteRide); if (ride != nullptr) { ride->FormatNameTo(gCommonFormatArgs); @@ -1943,7 +1943,7 @@ static rct_string_id window_guest_inventory_format_item(Peep* peep, int32_t item switch (item) { case SHOP_ITEM_BALLOON: - set_format_arg(0, uint32_t, SPRITE_ID_PALETTE_COLOUR_1(peep->balloon_colour) | ShopItems[item].Image); + set_format_arg(0, uint32_t, SPRITE_ID_PALETTE_COLOUR_1(peep->BalloonColour) | ShopItems[item].Image); break; case SHOP_ITEM_PHOTO: ride = get_ride(peep->photo1_ride_ref); @@ -1951,7 +1951,7 @@ static rct_string_id window_guest_inventory_format_item(Peep* peep, int32_t item ride->FormatNameTo(gCommonFormatArgs + 6); break; case SHOP_ITEM_UMBRELLA: - set_format_arg(0, uint32_t, SPRITE_ID_PALETTE_COLOUR_1(peep->umbrella_colour) | ShopItems[item].Image); + set_format_arg(0, uint32_t, SPRITE_ID_PALETTE_COLOUR_1(peep->UmbrellaColour) | ShopItems[item].Image); break; case SHOP_ITEM_VOUCHER: switch (peep->voucher_type) @@ -1981,7 +1981,7 @@ static rct_string_id window_guest_inventory_format_item(Peep* peep, int32_t item } break; case SHOP_ITEM_HAT: - set_format_arg(0, uint32_t, SPRITE_ID_PALETTE_COLOUR_1(peep->hat_colour) | ShopItems[item].Image); + set_format_arg(0, uint32_t, SPRITE_ID_PALETTE_COLOUR_1(peep->HatColour) | ShopItems[item].Image); break; case SHOP_ITEM_TSHIRT: set_format_arg(0, uint32_t, SPRITE_ID_PALETTE_COLOUR_1(peep->tshirt_colour) | ShopItems[item].Image); diff --git a/src/openrct2-ui/windows/Staff.cpp b/src/openrct2-ui/windows/Staff.cpp index 330f452c97..b87d07245f 100644 --- a/src/openrct2-ui/windows/Staff.cpp +++ b/src/openrct2-ui/windows/Staff.cpp @@ -1048,7 +1048,7 @@ void window_staff_overview_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) if (ebx >= 0x2A1D && ebx < 0x2A3D) { ebx += 32; - ebx |= SPRITE_ID_PALETTE_COLOUR_1(peep->balloon_colour); + ebx |= SPRITE_ID_PALETTE_COLOUR_1(peep->BalloonColour); gfx_draw_sprite(&clip_dpi, ebx, x, y, 0); } @@ -1056,7 +1056,7 @@ void window_staff_overview_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) if (ebx >= 0x2BBD && ebx < 0x2BDD) { ebx += 32; - ebx |= SPRITE_ID_PALETTE_COLOUR_1(peep->umbrella_colour); + ebx |= SPRITE_ID_PALETTE_COLOUR_1(peep->UmbrellaColour); gfx_draw_sprite(&clip_dpi, ebx, x, y, 0); } @@ -1064,7 +1064,7 @@ void window_staff_overview_tab_paint(rct_window* w, rct_drawpixelinfo* dpi) if (ebx >= 0x29DD && ebx < 0x29FD) { ebx += 32; - ebx |= SPRITE_ID_PALETTE_COLOUR_1(peep->hat_colour); + ebx |= SPRITE_ID_PALETTE_COLOUR_1(peep->HatColour); gfx_draw_sprite(&clip_dpi, ebx, x, y, 0); } } diff --git a/src/openrct2/GameStateSnapshots.cpp b/src/openrct2/GameStateSnapshots.cpp index d53290125b..43f4e0ff7c 100644 --- a/src/openrct2/GameStateSnapshots.cpp +++ b/src/openrct2/GameStateSnapshots.cpp @@ -304,16 +304,16 @@ 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, angriness); - COMPARE_FIELD(Peep, time_lost); - COMPARE_FIELD(Peep, days_in_queue); - COMPARE_FIELD(Peep, balloon_colour); - COMPARE_FIELD(Peep, umbrella_colour); - COMPARE_FIELD(Peep, hat_colour); - COMPARE_FIELD(Peep, favourite_ride); - COMPARE_FIELD(Peep, favourite_ride_rating); - COMPARE_FIELD(Peep, item_standard_flags); + COMPARE_FIELD(Peep, SurroundingsThoughtTimeout); + COMPARE_FIELD(Peep, Angriness); + COMPARE_FIELD(Peep, TimeLost); + COMPARE_FIELD(Peep, DaysInQueue); + COMPARE_FIELD(Peep, BalloonColour); + COMPARE_FIELD(Peep, UmbrellaColour); + COMPARE_FIELD(Peep, HatColour); + COMPARE_FIELD(Peep, FavouriteRide); + COMPARE_FIELD(Peep, FavouriteRideRating); + COMPARE_FIELD(Peep, ItemStandardFlags); } void CompareSpriteDataVehicle( diff --git a/src/openrct2/actions/RideDemolishAction.hpp b/src/openrct2/actions/RideDemolishAction.hpp index 0bc5de3bef..a001fb611b 100644 --- a/src/openrct2/actions/RideDemolishAction.hpp +++ b/src/openrct2/actions/RideDemolishAction.hpp @@ -176,20 +176,20 @@ private: } // remove any free voucher for this ride from peep - if (peep->item_standard_flags & PEEP_ITEM_VOUCHER) + if (peep->ItemStandardFlags & PEEP_ITEM_VOUCHER) { if (peep->voucher_type == VOUCHER_TYPE_RIDE_FREE && peep->voucher_arguments == _rideIndex) { - peep->item_standard_flags &= ~(PEEP_ITEM_VOUCHER); + peep->ItemStandardFlags &= ~(PEEP_ITEM_VOUCHER); } } // remove any photos of this ride from peep - if (peep->item_standard_flags & PEEP_ITEM_PHOTO) + if (peep->ItemStandardFlags & PEEP_ITEM_PHOTO) { if (peep->photo1_ride_ref == _rideIndex) { - peep->item_standard_flags &= ~PEEP_ITEM_PHOTO; + peep->ItemStandardFlags &= ~PEEP_ITEM_PHOTO; } } if (peep->item_extra_flags & PEEP_ITEM_PHOTO2) @@ -218,9 +218,9 @@ private: { peep->guest_heading_to_ride_id = RIDE_ID_NULL; } - if (peep->favourite_ride == _rideIndex) + if (peep->FavouriteRide == _rideIndex) { - peep->favourite_ride = RIDE_ID_NULL; + peep->FavouriteRide = RIDE_ID_NULL; } for (int32_t i = 0; i < PEEP_MAX_THOUGHTS; i++) diff --git a/src/openrct2/actions/SetCheatAction.hpp b/src/openrct2/actions/SetCheatAction.hpp index 40f858a4b5..474da7a9a5 100644 --- a/src/openrct2/actions/SetCheatAction.hpp +++ b/src/openrct2/actions/SetCheatAction.hpp @@ -588,7 +588,7 @@ private: if (value > 0) { peep->peep_flags &= ~PEEP_FLAGS_ANGRY; - peep->angriness = 0; + peep->Angriness = 0; } break; case GUEST_PARAMETER_ENERGY: @@ -633,16 +633,16 @@ private: peep->cash_in_pocket = MONEY(1000, 00); break; case OBJECT_PARK_MAP: - peep->item_standard_flags |= PEEP_ITEM_MAP; + peep->ItemStandardFlags |= PEEP_ITEM_MAP; break; case OBJECT_BALLOON: - peep->item_standard_flags |= PEEP_ITEM_BALLOON; - peep->balloon_colour = scenario_rand_max(COLOUR_COUNT - 1); + peep->ItemStandardFlags |= PEEP_ITEM_BALLOON; + peep->BalloonColour = scenario_rand_max(COLOUR_COUNT - 1); peep->UpdateSpriteType(); break; case OBJECT_UMBRELLA: - peep->item_standard_flags |= PEEP_ITEM_UMBRELLA; - peep->umbrella_colour = scenario_rand_max(COLOUR_COUNT - 1); + peep->ItemStandardFlags |= PEEP_ITEM_UMBRELLA; + peep->UmbrellaColour = scenario_rand_max(COLOUR_COUNT - 1); peep->UpdateSpriteType(); break; } diff --git a/src/openrct2/actions/StaffHireNewAction.hpp b/src/openrct2/actions/StaffHireNewAction.hpp index 0b4185de55..9edc1b10f4 100644 --- a/src/openrct2/actions/StaffHireNewAction.hpp +++ b/src/openrct2/actions/StaffHireNewAction.hpp @@ -173,7 +173,7 @@ private: newPeep->paid_on_rides = 0; newPeep->paid_on_food = 0; newPeep->paid_on_souvenirs = 0; - newPeep->favourite_ride = RIDE_ID_NULL; + newPeep->FavouriteRide = RIDE_ID_NULL; newPeep->staff_orders = _staffOrders; uint16_t idSearchSpriteIndex; diff --git a/src/openrct2/management/Marketing.cpp b/src/openrct2/management/Marketing.cpp index 0f6fa1faa0..3b3caa930c 100644 --- a/src/openrct2/management/Marketing.cpp +++ b/src/openrct2/management/Marketing.cpp @@ -135,22 +135,22 @@ void marketing_set_guest_campaign(Peep* peep, int32_t campaignType) switch (campaign->Type) { case ADVERTISING_CAMPAIGN_PARK_ENTRY_FREE: - peep->item_standard_flags |= PEEP_ITEM_VOUCHER; + peep->ItemStandardFlags |= PEEP_ITEM_VOUCHER; peep->voucher_type = VOUCHER_TYPE_PARK_ENTRY_FREE; break; case ADVERTISING_CAMPAIGN_RIDE_FREE: - peep->item_standard_flags |= PEEP_ITEM_VOUCHER; + peep->ItemStandardFlags |= PEEP_ITEM_VOUCHER; peep->voucher_type = VOUCHER_TYPE_RIDE_FREE; peep->voucher_arguments = campaign->RideId; peep->guest_heading_to_ride_id = campaign->RideId; peep->peep_is_lost_countdown = 240; break; case ADVERTISING_CAMPAIGN_PARK_ENTRY_HALF_PRICE: - peep->item_standard_flags |= PEEP_ITEM_VOUCHER; + peep->ItemStandardFlags |= PEEP_ITEM_VOUCHER; peep->voucher_type = VOUCHER_TYPE_PARK_ENTRY_HALF_PRICE; break; case ADVERTISING_CAMPAIGN_FOOD_OR_DRINK_FREE: - peep->item_standard_flags |= PEEP_ITEM_VOUCHER; + peep->ItemStandardFlags |= PEEP_ITEM_VOUCHER; peep->voucher_type = VOUCHER_TYPE_FOOD_OR_DRINK_FREE; peep->voucher_arguments = campaign->ShopItemType; break; diff --git a/src/openrct2/paint/sprite/Paint.Peep.cpp b/src/openrct2/paint/sprite/Paint.Peep.cpp index ffac5bf987..a478c65c4b 100644 --- a/src/openrct2/paint/sprite/Paint.Peep.cpp +++ b/src/openrct2/paint/sprite/Paint.Peep.cpp @@ -87,21 +87,21 @@ void peep_paint(paint_session* session, const Peep* peep, int32_t imageDirection if (baseImageId >= 10717 && baseImageId < 10749) { - imageId = (baseImageId + 32) | peep->hat_colour << 19 | IMAGE_TYPE_REMAP; + imageId = (baseImageId + 32) | peep->HatColour << 19 | IMAGE_TYPE_REMAP; sub_98199C(session, imageId, 0, 0, 1, 1, 11, peep->z, 0, 0, peep->z + 5); return; } if (baseImageId >= 10781 && baseImageId < 10813) { - imageId = (baseImageId + 32) | peep->balloon_colour << 19 | IMAGE_TYPE_REMAP; + imageId = (baseImageId + 32) | peep->BalloonColour << 19 | IMAGE_TYPE_REMAP; sub_98199C(session, imageId, 0, 0, 1, 1, 11, peep->z, 0, 0, peep->z + 5); return; } if (baseImageId >= 11197 && baseImageId < 11229) { - imageId = (baseImageId + 32) | peep->umbrella_colour << 19 | IMAGE_TYPE_REMAP; + imageId = (baseImageId + 32) | peep->UmbrellaColour << 19 | IMAGE_TYPE_REMAP; sub_98199C(session, imageId, 0, 0, 1, 1, 11, peep->z, 0, 0, peep->z + 5); return; } diff --git a/src/openrct2/peep/Guest.cpp b/src/openrct2/peep/Guest.cpp index fb704287e6..8bb270408d 100644 --- a/src/openrct2/peep/Guest.cpp +++ b/src/openrct2/peep/Guest.cpp @@ -446,10 +446,10 @@ void Guest::GivePassingPeepsPurpleClothes(Guest* passingPeep) void Guest::GivePassingPeepsPizza(Guest* passingPeep) { - if ((passingPeep->item_standard_flags & PEEP_ITEM_PIZZA)) + if ((passingPeep->ItemStandardFlags & PEEP_ITEM_PIZZA)) return; - passingPeep->item_standard_flags |= PEEP_ITEM_PIZZA; + passingPeep->ItemStandardFlags |= PEEP_ITEM_PIZZA; int32_t peepDirection = (sprite_direction >> 3) ^ 2; int32_t otherPeepOppositeDirection = passingPeep->sprite_direction >> 3; @@ -485,10 +485,10 @@ void Guest::GivePassingPeepsIceCream(Guest* passingPeep) { if (this == passingPeep) return; - if (passingPeep->item_standard_flags & PEEP_ITEM_ICE_CREAM) + if (passingPeep->ItemStandardFlags & PEEP_ITEM_ICE_CREAM) return; - passingPeep->item_standard_flags |= PEEP_ITEM_ICE_CREAM; + passingPeep->ItemStandardFlags |= PEEP_ITEM_ICE_CREAM; passingPeep->UpdateSpriteType(); } @@ -750,15 +750,15 @@ void Guest::Tick128UpdateGuest(int32_t index) nausea = 130; } - if (angriness != 0) - angriness--; + if (Angriness != 0) + Angriness--; 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); @@ -822,7 +822,7 @@ void Guest::Tick128UpdateGuest(int32_t index) } } - if ((scenario_rand() & 0xFFFF) <= ((item_standard_flags & PEEP_ITEM_MAP) ? 8192U : 2184U)) + if ((scenario_rand() & 0xFFFF) <= ((ItemStandardFlags & PEEP_ITEM_MAP) ? 8192U : 2184U)) { PickRideToGoOn(); } @@ -1085,12 +1085,12 @@ void Guest::Tick128UpdateGuest(int32_t index) int32_t chosen_food = bitscanforward(HasFoodStandardFlag()); if (chosen_food != -1) { - item_standard_flags &= ~(1 << chosen_food); + ItemStandardFlags &= ~(1 << chosen_food); uint8_t discard_container = peep_item_containers[chosen_food]; if (discard_container != 0xFF) { - item_standard_flags |= (1 << discard_container); + ItemStandardFlags |= (1 << discard_container); } window_invalidate_flags |= PEEP_INVALIDATE_PEEP_INVENTORY; @@ -1108,7 +1108,7 @@ void Guest::Tick128UpdateGuest(int32_t index) if (discard_container >= 32) item_extra_flags |= (1 << (discard_container - 32)); else - item_standard_flags |= (1 << discard_container); + ItemStandardFlags |= (1 << discard_container); } window_invalidate_flags |= PEEP_INVALIDATE_PEEP_INVENTORY; @@ -1320,7 +1320,7 @@ bool Guest::HasItem(int32_t peepItem) const { if (peepItem < 32) { - return item_standard_flags & (1u << peepItem); + return ItemStandardFlags & (1u << peepItem); } else { @@ -1330,7 +1330,7 @@ bool Guest::HasItem(int32_t peepItem) const int32_t Guest::HasFoodStandardFlag() const { - return item_standard_flags + return ItemStandardFlags & (PEEP_ITEM_DRINK | PEEP_ITEM_BURGER | PEEP_ITEM_CHIPS | PEEP_ITEM_ICE_CREAM | PEEP_ITEM_CANDYFLOSS | PEEP_ITEM_PIZZA | PEEP_ITEM_POPCORN | PEEP_ITEM_HOT_DOG | PEEP_ITEM_TENTACLE | PEEP_ITEM_TOFFEE_APPLE | PEEP_ITEM_DOUGHNUT | PEEP_ITEM_COFFEE | PEEP_ITEM_CHICKEN | PEEP_ITEM_LEMONADE); @@ -1347,7 +1347,7 @@ int32_t Guest::HasFoodExtraFlag() const bool Guest::HasDrinkStandardFlag() const { - return item_standard_flags & (PEEP_ITEM_DRINK | PEEP_ITEM_COFFEE | PEEP_ITEM_LEMONADE); + return ItemStandardFlags & (PEEP_ITEM_DRINK | PEEP_ITEM_COFFEE | PEEP_ITEM_LEMONADE); } bool Guest::HasDrinkExtraFlag() const @@ -1367,7 +1367,7 @@ bool Guest::HasDrink() const int32_t Guest::HasEmptyContainerStandardFlag() const { - return item_standard_flags + return ItemStandardFlags & (PEEP_ITEM_EMPTY_CAN | PEEP_ITEM_EMPTY_BURGER_BOX | PEEP_ITEM_EMPTY_CUP | PEEP_ITEM_RUBBISH | PEEP_ITEM_EMPTY_BOX | PEEP_ITEM_EMPTY_BOTTLE); } @@ -1399,10 +1399,10 @@ void Guest::CheckIfLost() if (!(peep_flags & PEEP_FLAGS_21)) return; - time_lost++; - if (time_lost != 254) + TimeLost++; + if (TimeLost != 254) return; - time_lost = 230; + TimeLost = 230; } InsertNewThought(PEEP_THOUGHT_TYPE_LOST, PEEP_THOUGHT_ITEM_NONE); @@ -1481,7 +1481,7 @@ bool Guest::DecideAndBuyItem(Ride* ride, int32_t shopItem, money32 price) bool hasVoucher = false; - if ((item_standard_flags & PEEP_ITEM_VOUCHER) && (voucher_type == VOUCHER_TYPE_FOOD_OR_DRINK_FREE) + if ((ItemStandardFlags & PEEP_ITEM_VOUCHER) && (voucher_type == VOUCHER_TYPE_FOOD_OR_DRINK_FREE) && (voucher_arguments == shopItem)) { hasVoucher = true; @@ -1650,19 +1650,19 @@ loc_69B221: if (shopItem >= 32) item_extra_flags |= (1u << (shopItem - 32)); else - item_standard_flags |= (1u << shopItem); + ItemStandardFlags |= (1u << shopItem); if (shopItem == SHOP_ITEM_TSHIRT) tshirt_colour = ride->track_colour[0].main; if (shopItem == SHOP_ITEM_HAT) - hat_colour = ride->track_colour[0].main; + HatColour = ride->track_colour[0].main; if (shopItem == SHOP_ITEM_BALLOON) - balloon_colour = ride->track_colour[0].main; + BalloonColour = ride->track_colour[0].main; if (shopItem == SHOP_ITEM_UMBRELLA) - umbrella_colour = ride->track_colour[0].main; + UmbrellaColour = ride->track_colour[0].main; if (shopItem == SHOP_ITEM_MAP) peep_reset_pathfind_goal(this); @@ -1726,7 +1726,7 @@ loc_69B221: expenditure = static_cast(static_cast(expenditure) - 1); if (hasVoucher) { - item_standard_flags &= ~PEEP_ITEM_VOUCHER; + ItemStandardFlags &= ~PEEP_ITEM_VOUCHER; window_invalidate_flags |= PEEP_INVALIDATE_PEEP_INVENTORY; } else if (!(gParkFlags & PARK_FLAGS_NO_MONEY)) @@ -1787,7 +1787,7 @@ void Guest::OnExitRide(ride_id_t rideIndex) if (peep_flags & PEEP_FLAGS_RIDE_SHOULD_BE_MARKED_AS_FAVOURITE) { peep_flags &= ~PEEP_FLAGS_RIDE_SHOULD_BE_MARKED_AS_FAVOURITE; - favourite_ride = rideIndex; + FavouriteRide = rideIndex; // TODO fix this flag name or add another one window_invalidate_flags |= PEEP_INVALIDATE_STAFF_STATS; } @@ -1869,7 +1869,7 @@ void Guest::PickRideToGoOn() window_invalidate_flags |= PEEP_INVALIDATE_PEEP_ACTION; // Make peep look at their map if they have one - if (item_standard_flags & PEEP_ITEM_MAP) + if (ItemStandardFlags & PEEP_ITEM_MAP) { ReadMap(); } @@ -1907,7 +1907,7 @@ std::bitset Guest::FindRidesToGoOn() // FIX Originally checked for a toy, likely a mistake and should be a map, // but then again this seems to only allow the peep to go on // rides they haven't been on before. - if (item_standard_flags & PEEP_ITEM_MAP) + if (ItemStandardFlags & PEEP_ITEM_MAP) { // Consider rides that peep hasn't been on yet for (auto& ride : GetRideManager()) @@ -2413,7 +2413,7 @@ void Guest::ReadMap() static bool peep_has_voucher_for_free_ride(Peep* peep, Ride* ride) { - return peep->item_standard_flags & PEEP_ITEM_VOUCHER && peep->voucher_type == VOUCHER_TYPE_RIDE_FREE + return peep->ItemStandardFlags & PEEP_ITEM_VOUCHER && peep->voucher_type == VOUCHER_TYPE_RIDE_FREE && peep->voucher_arguments == ride->id; } @@ -2634,7 +2634,7 @@ static void peep_update_ride_at_entrance_try_leave(Guest* peep) static bool peep_check_ride_price_at_entrance(Guest* peep, Ride* ride, money32 ridePrice) { - if ((peep->item_standard_flags & PEEP_ITEM_VOUCHER) && peep->voucher_type == VOUCHER_TYPE_RIDE_FREE + if ((peep->ItemStandardFlags & PEEP_ITEM_VOUCHER) && peep->voucher_type == VOUCHER_TYPE_RIDE_FREE && peep->voucher_arguments == peep->current_ride) return true; @@ -2713,11 +2713,11 @@ static void peep_update_favourite_ride(Peep* peep, Ride* ride) { peep->peep_flags &= ~PEEP_FLAGS_RIDE_SHOULD_BE_MARKED_AS_FAVOURITE; uint8_t peepRideRating = std::clamp((ride->excitement / 4) + peep->happiness, 0, PEEP_MAX_HAPPINESS); - if (peepRideRating >= peep->favourite_ride_rating) + if (peepRideRating >= peep->FavouriteRideRating) { if (peep->happiness >= 160 && peep->happiness_target >= 160) { - peep->favourite_ride_rating = peepRideRating; + peep->FavouriteRideRating = peepRideRating; peep->peep_flags |= PEEP_FLAGS_RIDE_SHOULD_BE_MARKED_AS_FAVOURITE; } } @@ -3160,7 +3160,7 @@ template static void peep_head_for_nearest_ride(Guest* peep, bool co } std::bitset rideConsideration; - if (!considerOnlyCloseRides && (peep->item_standard_flags & PEEP_ITEM_MAP)) + if (!considerOnlyCloseRides && (peep->ItemStandardFlags & PEEP_ITEM_MAP)) { // Consider all rides in the park for (const auto& ride : GetRideManager()) @@ -3245,7 +3245,7 @@ template static void peep_head_for_nearest_ride(Guest* peep, bool co peep->peep_is_lost_countdown = 200; peep_reset_pathfind_goal(peep); peep->window_invalidate_flags |= PEEP_INVALIDATE_PEEP_ACTION; - peep->time_lost = 0; + peep->TimeLost = 0; } } @@ -3857,10 +3857,10 @@ void Guest::UpdateRideFreeVehicleEnterRide(Ride* ride) money16 ridePrice = ride_get_price(ride); if (ridePrice != 0) { - if ((item_standard_flags & PEEP_ITEM_VOUCHER) && (voucher_type == VOUCHER_TYPE_RIDE_FREE) + if ((ItemStandardFlags & PEEP_ITEM_VOUCHER) && (voucher_type == VOUCHER_TYPE_RIDE_FREE) && (voucher_arguments == current_ride)) { - item_standard_flags &= ~PEEP_ITEM_VOUCHER; + ItemStandardFlags &= ~PEEP_ITEM_VOUCHER; window_invalidate_flags |= PEEP_INVALIDATE_PEEP_INVENTORY; } else @@ -3872,7 +3872,7 @@ void Guest::UpdateRideFreeVehicleEnterRide(Ride* ride) } sub_state = PEEP_RIDE_LEAVE_ENTRANCE; - uint8_t queueTime = days_in_queue; + uint8_t queueTime = DaysInQueue; if (queueTime < 253) queueTime += 3; @@ -5337,7 +5337,7 @@ void Guest::UpdateWalking() if (pos_stnd != 32) { - item_standard_flags &= ~(1u << pos_stnd); + ItemStandardFlags &= ~(1u << pos_stnd); litterType = item_standard_litter[pos_stnd]; } else @@ -5916,7 +5916,7 @@ void Guest::UpdateUsingBin() // switched to scenario_rand as it is more reliable if ((scenario_rand() & 7) == 0) space_left_in_bin--; - item_standard_flags &= ~(1 << cur_container); + ItemStandardFlags &= ~(1 << cur_container); window_invalidate_flags |= PEEP_INVALIDATE_PEEP_INVENTORY; UpdateSpriteType(); continue; @@ -5927,7 +5927,7 @@ void Guest::UpdateUsingBin() int32_t litterY = y + (scenario_rand() & 7) - 3; litter_create(litterX, litterY, z, scenario_rand() & 3, litterType); - item_standard_flags &= ~(1 << cur_container); + ItemStandardFlags &= ~(1 << cur_container); window_invalidate_flags |= PEEP_INVALIDATE_PEEP_INVENTORY; UpdateSpriteType(); @@ -6292,7 +6292,7 @@ static void peep_update_walking_break_scenery(Peep* peep) map_invalidate_tile_zoom1({ peep->NextLoc, tileElement->GetBaseZ(), tileElement->GetBaseZ() + 32 }); - peep->angriness = 16; + peep->Angriness = 16; } /** @@ -6853,13 +6853,13 @@ void Guest::UpdateSpriteType() isBalloonPopped = true; audio_play_sound_at_location(SoundId::BalloonPop, { x, y, z }); } - create_balloon(x, y, z + 9, balloon_colour, isBalloonPopped); + create_balloon(x, y, z + 9, BalloonColour, isBalloonPopped); } - item_standard_flags &= ~PEEP_ITEM_BALLOON; + ItemStandardFlags &= ~PEEP_ITEM_BALLOON; window_invalidate_flags |= PEEP_INVALIDATE_PEEP_INVENTORY; } - if (climate_is_raining() && (item_standard_flags & PEEP_ITEM_UMBRELLA) && x != LOCATION_NULL) + if (climate_is_raining() && (ItemStandardFlags & PEEP_ITEM_UMBRELLA) && x != LOCATION_NULL) { CoordsXY loc = { x, y }; if (map_is_location_valid(loc.ToTileStart())) @@ -6886,7 +6886,7 @@ void Guest::UpdateSpriteType() { if (item_pref->type == 0) { - if (item_standard_flags & item_pref->item) + if (ItemStandardFlags & item_pref->item) { SetSpriteType(item_pref->sprite_type); return; diff --git a/src/openrct2/peep/GuestPathfinding.cpp b/src/openrct2/peep/GuestPathfinding.cpp index 2046ddabdc..012109648e 100644 --- a/src/openrct2/peep/GuestPathfinding.cpp +++ b/src/openrct2/peep/GuestPathfinding.cpp @@ -455,7 +455,7 @@ static uint8_t peep_pathfind_get_max_number_junctions(Peep* peep) return 8; } - if (peep->item_standard_flags & PEEP_ITEM_MAP) + if (peep->ItemStandardFlags & PEEP_ITEM_MAP) return 7; if (peep->peep_flags & PEEP_FLAGS_LEAVING_PARK) @@ -2024,7 +2024,7 @@ int32_t guest_path_finding(Guest* peep) /* If there are still multiple directions to choose from, * peeps with maps will randomly read the map: probability of doing so * is much higher when heading for a ride or the park exit. */ - if (peep->item_standard_flags & PEEP_ITEM_MAP) + if (peep->ItemStandardFlags & PEEP_ITEM_MAP) { // If at least 2 directions consult map if (bitcount(edges) >= 2) diff --git a/src/openrct2/peep/Peep.cpp b/src/openrct2/peep/Peep.cpp index 6cb641ad29..d20ae7f671 100644 --- a/src/openrct2/peep/Peep.cpp +++ b/src/openrct2/peep/Peep.cpp @@ -1482,9 +1482,9 @@ void peep_update_days_in_queue() { if (peep->outside_of_park == 0 && peep->state == PEEP_STATE_QUEUING) { - if (peep->days_in_queue < 255) + if (peep->DaysInQueue < 255) { - peep->days_in_queue += 1; + peep->DaysInQueue += 1; } } } @@ -1634,8 +1634,8 @@ Peep* Peep::Generate(const CoordsXYZ& coords) peep->no_action_frame_num = 0; peep->action_sprite_type = PEEP_ACTION_SPRITE_TYPE_NONE; peep->peep_flags = 0; - peep->favourite_ride = RIDE_ID_NULL; - peep->favourite_ride_rating = 0; + peep->FavouriteRide = RIDE_ID_NULL; + peep->FavouriteRideRating = 0; const rct_sprite_bounds* spriteBounds = g_peep_animation_entries[peep->sprite_type].sprite_bounds; peep->sprite_width = spriteBounds[peep->action_sprite_type].sprite_width; @@ -1758,7 +1758,7 @@ Peep* Peep::Generate(const CoordsXYZ& coords) peep->pathfind_goal.y = 0xFF; peep->pathfind_goal.z = 0xFF; peep->pathfind_goal.direction = INVALID_DIRECTION; - peep->item_standard_flags = 0; + peep->ItemStandardFlags = 0; peep->item_extra_flags = 0; peep->guest_heading_to_ride_id = RIDE_ID_NULL; peep->litter_count = 0; @@ -1772,9 +1772,9 @@ 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->angriness = 0; - peep->time_lost = 0; + peep->SurroundingsThoughtTimeout = 0; + peep->Angriness = 0; + peep->TimeLost = 0; uint8_t tshirtColour = static_cast(scenario_rand() % std::size(tshirt_colours)); peep->tshirt_colour = tshirt_colours[tshirtColour]; @@ -2172,7 +2172,7 @@ static constexpr const int32_t face_sprite_large[] = { static int32_t get_face_sprite_offset(Peep* peep) { // ANGRY - if (peep->angriness > 0) + if (peep->Angriness > 0) return PEEP_FACE_OFFSET_ANGRY; // VERY_VERY_SICK @@ -2410,7 +2410,7 @@ static void peep_interact_with_entrance(Peep* peep, int16_t x, int16_t y, TileEl return; } - peep->time_lost = 0; + peep->TimeLost = 0; auto stationNum = tile_element->AsEntrance()->GetStationIndex(); // Guest walks up to the ride for the first time since entering // the path tile or since considering another ride attached to @@ -2435,7 +2435,7 @@ static void peep_interact_with_entrance(Peep* peep, int16_t x, int16_t y, TileEl peep->current_ride = rideIndex; peep->current_ride_station = stationNum; - peep->days_in_queue = 0; + peep->DaysInQueue = 0; peep->SetState(PEEP_STATE_QUEUING); peep->sub_state = 11; peep->time_in_queue = 0; @@ -2601,18 +2601,18 @@ static void peep_interact_with_entrance(Peep* peep, int16_t x, int16_t y, TileEl money16 entranceFee = park_get_entrance_fee(); if (entranceFee != 0) { - if (peep->item_standard_flags & PEEP_ITEM_VOUCHER) + if (peep->ItemStandardFlags & PEEP_ITEM_VOUCHER) { if (peep->voucher_type == VOUCHER_TYPE_PARK_ENTRY_HALF_PRICE) { entranceFee /= 2; - peep->item_standard_flags &= ~PEEP_ITEM_VOUCHER; + peep->ItemStandardFlags &= ~PEEP_ITEM_VOUCHER; peep->window_invalidate_flags |= PEEP_INVALIDATE_PEEP_INVENTORY; } else if (peep->voucher_type == VOUCHER_TYPE_PARK_ENTRY_FREE) { entranceFee = 0; - peep->item_standard_flags &= ~PEEP_ITEM_VOUCHER; + peep->ItemStandardFlags &= ~PEEP_ITEM_VOUCHER; peep->window_invalidate_flags |= PEEP_INVALIDATE_PEEP_INVENTORY; } } @@ -2839,7 +2839,7 @@ static void peep_interact_with_path(Peep* peep, int16_t x, int16_t y, TileElemen else { // Peep is not queuing. - peep->time_lost = 0; + peep->TimeLost = 0; auto stationNum = tile_element->AsPath()->GetStationIndex(); if ((tile_element->AsPath()->HasQueueBanner()) @@ -2865,7 +2865,7 @@ static void peep_interact_with_path(Peep* peep, int16_t x, int16_t y, TileElemen peep->current_ride = rideIndex; peep->current_ride_station = stationNum; peep->state = PEEP_STATE_QUEUING; - peep->days_in_queue = 0; + peep->DaysInQueue = 0; peep_window_state_update(peep); peep->sub_state = 10; @@ -2929,7 +2929,7 @@ static bool peep_interact_with_shop(Peep* peep, int16_t x, int16_t y, TileElemen return true; } - peep->time_lost = 0; + peep->TimeLost = 0; if (ride->status != RIDE_STATUS_OPEN) { @@ -2951,7 +2951,7 @@ static bool peep_interact_with_shop(Peep* peep, int16_t x, int16_t y, TileElemen if (ride_type_has_flag(ride->type, RIDE_TYPE_FLAG_PEEP_SHOULD_GO_INSIDE_FACILITY)) { - peep->time_lost = 0; + peep->TimeLost = 0; if (!guest->ShouldGoOnRide(ride, 0, false, false)) { peep_return_to_centre_of_tile(peep); @@ -3392,13 +3392,13 @@ void decrement_guests_heading_for_park() static void peep_release_balloon(Guest* peep, int16_t spawn_height) { - if (peep->item_standard_flags & PEEP_ITEM_BALLOON) + if (peep->ItemStandardFlags & PEEP_ITEM_BALLOON) { - peep->item_standard_flags &= ~PEEP_ITEM_BALLOON; + peep->ItemStandardFlags &= ~PEEP_ITEM_BALLOON; if (peep->sprite_type == PEEP_SPRITE_TYPE_BALLOON && peep->x != LOCATION_NULL) { - create_balloon(peep->x, peep->y, spawn_height, peep->balloon_colour, false); + create_balloon(peep->x, peep->y, spawn_height, peep->BalloonColour, false); peep->window_invalidate_flags |= PEEP_INVALIDATE_PEEP_INVENTORY; peep->UpdateSpriteType(); } diff --git a/src/openrct2/peep/Peep.h b/src/openrct2/peep/Peep.h index b643e3a796..6aa33c773d 100644 --- a/src/openrct2/peep/Peep.h +++ b/src/openrct2/peep/Peep.h @@ -403,7 +403,7 @@ enum PeepNauseaTolerance enum PeepItem { - // item_standard_flags + // ItemStandardFlags PEEP_ITEM_BALLOON = (1 << 0), PEEP_ITEM_TOY = (1 << 1), PEEP_ITEM_MAP = (1 << 2), @@ -738,16 +738,16 @@ 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 angriness; - uint8_t time_lost; // the time the peep has been lost when it reaches 254 generates the lost thought - uint8_t days_in_queue; - uint8_t balloon_colour; - uint8_t umbrella_colour; - uint8_t hat_colour; - uint8_t favourite_ride; - uint8_t favourite_ride_rating; - uint32_t item_standard_flags; + 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; + uint8_t BalloonColour; + uint8_t UmbrellaColour; + uint8_t HatColour; + uint8_t FavouriteRide; + uint8_t FavouriteRideRating; + uint32_t ItemStandardFlags; public: // Peep Guest* AsGuest(); diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index b881f42780..58460b7092 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -1430,17 +1430,17 @@ private: dst->tshirt_colour = RCT1::GetColour(src->tshirt_colour); dst->trousers_colour = RCT1::GetColour(src->trousers_colour); - dst->umbrella_colour = RCT1::GetColour(src->umbrella_colour); - dst->hat_colour = RCT1::GetColour(src->hat_colour); + dst->UmbrellaColour = RCT1::GetColour(src->umbrella_colour); + dst->HatColour = RCT1::GetColour(src->hat_colour); // Balloons were always blue in RCT1 without AA/LL if (_gameVersion == FILE_VERSION_RCT1) { - dst->balloon_colour = COLOUR_LIGHT_BLUE; + dst->BalloonColour = COLOUR_LIGHT_BLUE; } else { - dst->balloon_colour = RCT1::GetColour(src->balloon_colour); + dst->BalloonColour = RCT1::GetColour(src->balloon_colour); } dst->destination_x = src->destination_x; @@ -1472,7 +1472,7 @@ private: dst->current_car = src->current_car; dst->current_seat = src->current_seat; dst->time_on_ride = src->time_on_ride; - dst->days_in_queue = src->days_in_queue; + dst->DaysInQueue = src->days_in_queue; dst->interaction_ride_index = src->interaction_ride_index; @@ -1497,9 +1497,9 @@ private: dst->voucher_arguments = src->voucher_arguments; dst->voucher_type = src->voucher_type; - dst->surroundings_thought_timeout = src->surroundings_thought_timeout; - dst->angriness = src->angriness; - dst->time_lost = src->time_lost; + dst->SurroundingsThoughtTimeout = src->surroundings_thought_timeout; + dst->Angriness = src->angriness; + dst->TimeLost = src->time_lost; for (size_t i = 0; i < 32; i++) { @@ -1542,16 +1542,16 @@ private: // Set it to N/A if the save comes from the original or AA. if (_gameVersion == FILE_VERSION_RCT1_LL) { - dst->favourite_ride = src->favourite_ride; - dst->favourite_ride_rating = src->favourite_ride_rating; + dst->FavouriteRide = src->favourite_ride; + dst->FavouriteRideRating = src->favourite_ride_rating; } else { - dst->favourite_ride = RIDE_ID_NULL; - dst->favourite_ride_rating = 0; + dst->FavouriteRide = RIDE_ID_NULL; + dst->FavouriteRideRating = 0; } - dst->item_standard_flags = src->item_standard_flags; + dst->ItemStandardFlags = src->item_standard_flags; if (dst->type == PEEP_TYPE_GUEST) { diff --git a/src/openrct2/rct2/S6Exporter.cpp b/src/openrct2/rct2/S6Exporter.cpp index 2b4c0f255e..4e51e91970 100644 --- a/src/openrct2/rct2/S6Exporter.cpp +++ b/src/openrct2/rct2/S6Exporter.cpp @@ -1231,16 +1231,16 @@ 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->angriness = src->angriness; - dst->time_lost = src->time_lost; - dst->days_in_queue = src->days_in_queue; - dst->balloon_colour = src->balloon_colour; - dst->umbrella_colour = src->umbrella_colour; - dst->hat_colour = src->hat_colour; - dst->favourite_ride = src->favourite_ride; - dst->favourite_ride_rating = src->favourite_ride_rating; - dst->item_standard_flags = src->item_standard_flags; + dst->surroundings_thought_timeout = src->SurroundingsThoughtTimeout; + dst->angriness = src->Angriness; + dst->time_lost = src->TimeLost; + dst->days_in_queue = src->DaysInQueue; + dst->balloon_colour = src->BalloonColour; + dst->umbrella_colour = src->UmbrellaColour; + dst->hat_colour = src->HatColour; + dst->favourite_ride = src->FavouriteRide; + dst->favourite_ride_rating = src->FavouriteRideRating; + dst->item_standard_flags = src->ItemStandardFlags; } void S6Exporter::ExportSpriteMisc(RCT12SpriteBase* cdst, const SpriteBase* csrc) diff --git a/src/openrct2/rct2/S6Importer.cpp b/src/openrct2/rct2/S6Importer.cpp index f88065df46..760a678879 100644 --- a/src/openrct2/rct2/S6Importer.cpp +++ b/src/openrct2/rct2/S6Importer.cpp @@ -1496,16 +1496,16 @@ 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->angriness = src->angriness; - dst->time_lost = src->time_lost; - dst->days_in_queue = src->days_in_queue; - dst->balloon_colour = src->balloon_colour; - dst->umbrella_colour = src->umbrella_colour; - dst->hat_colour = src->hat_colour; - dst->favourite_ride = src->favourite_ride; - dst->favourite_ride_rating = src->favourite_ride_rating; - dst->item_standard_flags = src->item_standard_flags; + dst->SurroundingsThoughtTimeout = src->surroundings_thought_timeout; + dst->Angriness = src->angriness; + dst->TimeLost = src->time_lost; + dst->DaysInQueue = src->days_in_queue; + dst->BalloonColour = src->balloon_colour; + dst->UmbrellaColour = src->umbrella_colour; + dst->HatColour = src->hat_colour; + dst->FavouriteRide = src->favourite_ride; + dst->FavouriteRideRating = src->favourite_ride_rating; + dst->ItemStandardFlags = src->item_standard_flags; } void ImportSpriteMisc(SpriteBase* cdst, const RCT12SpriteBase* csrc) diff --git a/src/openrct2/ride/Ride.cpp b/src/openrct2/ride/Ride.cpp index b15d9bae91..03a2b48536 100644 --- a/src/openrct2/ride/Ride.cpp +++ b/src/openrct2/ride/Ride.cpp @@ -324,9 +324,9 @@ void ride_update_favourited_stat() FOR_ALL_GUESTS (spriteIndex, peep) { - if (peep->favourite_ride != RIDE_ID_NULL) + if (peep->FavouriteRide != RIDE_ID_NULL) { - auto ride = get_ride(peep->favourite_ride); + auto ride = get_ride(peep->FavouriteRide); if (ride != nullptr) { ride->guests_favourite++; diff --git a/test/tests/S6ImportExportTests.cpp b/test/tests/S6ImportExportTests.cpp index 45b56ed293..8ede42c145 100644 --- a/test/tests/S6ImportExportTests.cpp +++ b/test/tests/S6ImportExportTests.cpp @@ -257,16 +257,16 @@ 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(angriness); - COMPARE_FIELD(time_lost); - COMPARE_FIELD(days_in_queue); - COMPARE_FIELD(balloon_colour); - COMPARE_FIELD(umbrella_colour); - COMPARE_FIELD(hat_colour); - COMPARE_FIELD(favourite_ride); - COMPARE_FIELD(favourite_ride_rating); - COMPARE_FIELD(item_standard_flags); + COMPARE_FIELD(SurroundingsThoughtTimeout); + COMPARE_FIELD(Angriness); + COMPARE_FIELD(TimeLost); + COMPARE_FIELD(DaysInQueue); + COMPARE_FIELD(BalloonColour); + COMPARE_FIELD(UmbrellaColour); + COMPARE_FIELD(HatColour); + COMPARE_FIELD(FavouriteRide); + COMPARE_FIELD(FavouriteRideRating); + COMPARE_FIELD(ItemStandardFlags); } static void CompareSpriteDataVehicle(const Vehicle& left, const Vehicle& right)