diff --git a/src/openrct2-ui/windows/NewsOptions.cpp b/src/openrct2-ui/windows/NewsOptions.cpp index fac94b9bb8..7640933f16 100644 --- a/src/openrct2-ui/windows/NewsOptions.cpp +++ b/src/openrct2-ui/windows/NewsOptions.cpp @@ -35,24 +35,24 @@ struct NotificationDef }; static constexpr const NotificationDef NewsItemOptionDefinitions[] = { - { NOTIFICATION_CATEGORY_PARK, STR_NOTIFICATION_PARK_AWARD, offsetof(NotificationConfiguration, park_award) }, - { NOTIFICATION_CATEGORY_PARK, STR_NOTIFICATION_PARK_MARKETING_CAMPAIGN_FINISHED, offsetof(NotificationConfiguration, park_marketing_campaign_finished) }, - { NOTIFICATION_CATEGORY_PARK, STR_NOTIFICATION_PARK_WARNINGS, offsetof(NotificationConfiguration, park_warnings) }, - { NOTIFICATION_CATEGORY_PARK, STR_NOTIFICATION_PARK_RATING_WARNINGS, offsetof(NotificationConfiguration, park_rating_warnings) }, - { NOTIFICATION_CATEGORY_RIDE, STR_NOTIFICATION_RIDE_BROKEN_DOWN, offsetof(NotificationConfiguration, ride_broken_down) }, - { NOTIFICATION_CATEGORY_RIDE, STR_NOTIFICATION_RIDE_CRASHED, offsetof(NotificationConfiguration, ride_crashed) }, - { NOTIFICATION_CATEGORY_RIDE, STR_NOTIFICATION_RIDE_CASUALTIES, offsetof(NotificationConfiguration, ride_casualties) }, - { NOTIFICATION_CATEGORY_RIDE, STR_NOTIFICATION_RIDE_WARNINGS, offsetof(NotificationConfiguration, ride_warnings) }, - { NOTIFICATION_CATEGORY_RIDE, STR_NOTIFICATION_RIDE_RESEARCHED, offsetof(NotificationConfiguration, ride_researched) }, - { NOTIFICATION_CATEGORY_RIDE, STR_NOTIFICATION_RIDE_VEHICLE_STALLED, offsetof(NotificationConfiguration, ride_stalled_vehicles) }, - { NOTIFICATION_CATEGORY_GUEST, STR_NOTIFICATION_GUEST_WARNINGS, offsetof(NotificationConfiguration, guest_warnings) }, - { NOTIFICATION_CATEGORY_GUEST, STR_NOTIFICATION_GUEST_LEFT_PARK, offsetof(NotificationConfiguration, guest_left_park) }, - { NOTIFICATION_CATEGORY_GUEST, STR_NOTIFICATION_GUEST_QUEUING_FOR_RIDE, offsetof(NotificationConfiguration, guest_queuing_for_ride) }, - { NOTIFICATION_CATEGORY_GUEST, STR_NOTIFICATION_GUEST_ON_RIDE, offsetof(NotificationConfiguration, guest_on_ride) }, - { NOTIFICATION_CATEGORY_GUEST, STR_NOTIFICATION_GUEST_LEFT_RIDE, offsetof(NotificationConfiguration, guest_left_ride) }, - { NOTIFICATION_CATEGORY_GUEST, STR_NOTIFICATION_GUEST_BOUGHT_ITEM, offsetof(NotificationConfiguration, guest_bought_item) }, - { NOTIFICATION_CATEGORY_GUEST, STR_NOTIFICATION_GUEST_USED_FACILITY, offsetof(NotificationConfiguration, guest_used_facility) }, - { NOTIFICATION_CATEGORY_GUEST, STR_NOTIFICATION_GUEST_DIED, offsetof(NotificationConfiguration, guest_died) }, + { NOTIFICATION_CATEGORY_PARK, STR_NOTIFICATION_PARK_AWARD, offsetof(NotificationConfiguration, ParkAward) }, + { NOTIFICATION_CATEGORY_PARK, STR_NOTIFICATION_PARK_MARKETING_CAMPAIGN_FINISHED, offsetof(NotificationConfiguration, ParkMarketingCampaignFinished) }, + { NOTIFICATION_CATEGORY_PARK, STR_NOTIFICATION_PARK_WARNINGS, offsetof(NotificationConfiguration, ParkWarnings) }, + { NOTIFICATION_CATEGORY_PARK, STR_NOTIFICATION_PARK_RATING_WARNINGS, offsetof(NotificationConfiguration, ParkRatingWarnings) }, + { NOTIFICATION_CATEGORY_RIDE, STR_NOTIFICATION_RIDE_BROKEN_DOWN, offsetof(NotificationConfiguration, RideBrokenDown) }, + { NOTIFICATION_CATEGORY_RIDE, STR_NOTIFICATION_RIDE_CRASHED, offsetof(NotificationConfiguration, RideCrashed) }, + { NOTIFICATION_CATEGORY_RIDE, STR_NOTIFICATION_RIDE_CASUALTIES, offsetof(NotificationConfiguration, RideCasualties) }, + { NOTIFICATION_CATEGORY_RIDE, STR_NOTIFICATION_RIDE_WARNINGS, offsetof(NotificationConfiguration, RideWarnings) }, + { NOTIFICATION_CATEGORY_RIDE, STR_NOTIFICATION_RIDE_RESEARCHED, offsetof(NotificationConfiguration, RideResearched) }, + { NOTIFICATION_CATEGORY_RIDE, STR_NOTIFICATION_RIDE_VEHICLE_STALLED, offsetof(NotificationConfiguration, RideStalledVehicles) }, + { NOTIFICATION_CATEGORY_GUEST, STR_NOTIFICATION_GUEST_WARNINGS, offsetof(NotificationConfiguration, GuestWarnings) }, + { NOTIFICATION_CATEGORY_GUEST, STR_NOTIFICATION_GUEST_LEFT_PARK, offsetof(NotificationConfiguration, GuestLeftPark) }, + { NOTIFICATION_CATEGORY_GUEST, STR_NOTIFICATION_GUEST_QUEUING_FOR_RIDE, offsetof(NotificationConfiguration, GuestQueuingForRide) }, + { NOTIFICATION_CATEGORY_GUEST, STR_NOTIFICATION_GUEST_ON_RIDE, offsetof(NotificationConfiguration, GuestOnRide) }, + { NOTIFICATION_CATEGORY_GUEST, STR_NOTIFICATION_GUEST_LEFT_RIDE, offsetof(NotificationConfiguration, GuestLeftRide) }, + { NOTIFICATION_CATEGORY_GUEST, STR_NOTIFICATION_GUEST_BOUGHT_ITEM, offsetof(NotificationConfiguration, GuestBoughtItem) }, + { NOTIFICATION_CATEGORY_GUEST, STR_NOTIFICATION_GUEST_USED_FACILITY, offsetof(NotificationConfiguration, GuestUsedFacility) }, + { NOTIFICATION_CATEGORY_GUEST, STR_NOTIFICATION_GUEST_DIED, offsetof(NotificationConfiguration, GuestDied) }, }; enum WindowNewsOptionsWidgetIdx diff --git a/src/openrct2/config/Config.cpp b/src/openrct2/config/Config.cpp index d8afc01780..c888acfe9d 100644 --- a/src/openrct2/config/Config.cpp +++ b/src/openrct2/config/Config.cpp @@ -461,24 +461,24 @@ namespace Config if (reader->ReadSection("notifications")) { auto model = &gConfigNotifications; - model->park_award = reader->GetBoolean("park_award", true); - model->park_marketing_campaign_finished = reader->GetBoolean("park_marketing_campaign_finished", true); - model->park_warnings = reader->GetBoolean("park_warnings", true); - model->park_rating_warnings = reader->GetBoolean("park_rating_warnings", true); - model->ride_broken_down = reader->GetBoolean("ride_broken_down", true); - model->ride_crashed = reader->GetBoolean("ride_crashed", true); - model->ride_casualties = reader->GetBoolean("ride_casualties", true); - model->ride_warnings = reader->GetBoolean("ride_warnings", true); - model->ride_researched = reader->GetBoolean("ride_researched", true); - model->ride_stalled_vehicles = reader->GetBoolean("ride_stalled_vehicles", true); - model->guest_warnings = reader->GetBoolean("guest_warnings", true); - model->guest_left_park = reader->GetBoolean("guest_left_park", true); - model->guest_queuing_for_ride = reader->GetBoolean("guest_queuing_for_ride", true); - model->guest_on_ride = reader->GetBoolean("guest_on_ride", true); - model->guest_left_ride = reader->GetBoolean("guest_left_ride", true); - model->guest_bought_item = reader->GetBoolean("guest_bought_item", true); - model->guest_used_facility = reader->GetBoolean("guest_used_facility", true); - model->guest_died = reader->GetBoolean("guest_died", true); + model->ParkAward = reader->GetBoolean("park_award", true); + model->ParkMarketingCampaignFinished = reader->GetBoolean("park_marketing_campaign_finished", true); + model->ParkWarnings = reader->GetBoolean("park_warnings", true); + model->ParkRatingWarnings = reader->GetBoolean("park_rating_warnings", true); + model->RideBrokenDown = reader->GetBoolean("ride_broken_down", true); + model->RideCrashed = reader->GetBoolean("ride_crashed", true); + model->RideCasualties = reader->GetBoolean("ride_casualties", true); + model->RideWarnings = reader->GetBoolean("ride_warnings", true); + model->RideResearched = reader->GetBoolean("ride_researched", true); + model->RideStalledVehicles = reader->GetBoolean("ride_stalled_vehicles", true); + model->GuestWarnings = reader->GetBoolean("guest_warnings", true); + model->GuestLeftPark = reader->GetBoolean("guest_left_park", true); + model->GuestQueuingForRide = reader->GetBoolean("guest_queuing_for_ride", true); + model->GuestOnRide = reader->GetBoolean("guest_on_ride", true); + model->GuestLeftRide = reader->GetBoolean("guest_left_ride", true); + model->GuestBoughtItem = reader->GetBoolean("guest_bought_item", true); + model->GuestUsedFacility = reader->GetBoolean("guest_used_facility", true); + model->GuestDied = reader->GetBoolean("guest_died", true); } } @@ -486,24 +486,24 @@ namespace Config { auto model = &gConfigNotifications; writer->WriteSection("notifications"); - writer->WriteBoolean("park_award", model->park_award); - writer->WriteBoolean("park_marketing_campaign_finished", model->park_marketing_campaign_finished); - writer->WriteBoolean("park_warnings", model->park_warnings); - writer->WriteBoolean("park_rating_warnings", model->park_rating_warnings); - writer->WriteBoolean("ride_broken_down", model->ride_broken_down); - writer->WriteBoolean("ride_crashed", model->ride_crashed); - writer->WriteBoolean("ride_casualties", model->ride_casualties); - writer->WriteBoolean("ride_warnings", model->ride_warnings); - writer->WriteBoolean("ride_researched", model->ride_researched); - writer->WriteBoolean("ride_stalled_vehicles", model->ride_stalled_vehicles); - writer->WriteBoolean("guest_warnings", model->guest_warnings); - writer->WriteBoolean("guest_left_park", model->guest_left_park); - writer->WriteBoolean("guest_queuing_for_ride", model->guest_queuing_for_ride); - writer->WriteBoolean("guest_on_ride", model->guest_on_ride); - writer->WriteBoolean("guest_left_ride", model->guest_left_ride); - writer->WriteBoolean("guest_bought_item", model->guest_bought_item); - writer->WriteBoolean("guest_used_facility", model->guest_used_facility); - writer->WriteBoolean("guest_died", model->guest_died); + writer->WriteBoolean("park_award", model->ParkAward); + writer->WriteBoolean("park_marketing_campaign_finished", model->ParkMarketingCampaignFinished); + writer->WriteBoolean("park_warnings", model->ParkWarnings); + writer->WriteBoolean("park_rating_warnings", model->ParkRatingWarnings); + writer->WriteBoolean("ride_broken_down", model->RideBrokenDown); + writer->WriteBoolean("ride_crashed", model->RideCrashed); + writer->WriteBoolean("ride_casualties", model->RideCasualties); + writer->WriteBoolean("ride_warnings", model->RideWarnings); + writer->WriteBoolean("ride_researched", model->RideResearched); + writer->WriteBoolean("ride_stalled_vehicles", model->RideStalledVehicles); + writer->WriteBoolean("guest_warnings", model->GuestWarnings); + writer->WriteBoolean("guest_left_park", model->GuestLeftPark); + writer->WriteBoolean("guest_queuing_for_ride", model->GuestQueuingForRide); + writer->WriteBoolean("guest_on_ride", model->GuestOnRide); + writer->WriteBoolean("guest_left_ride", model->GuestLeftRide); + writer->WriteBoolean("guest_bought_item", model->GuestBoughtItem); + writer->WriteBoolean("guest_used_facility", model->GuestUsedFacility); + writer->WriteBoolean("guest_died", model->GuestDied); } static void ReadFont(IIniReader* reader) diff --git a/src/openrct2/config/Config.h b/src/openrct2/config/Config.h index eb88130000..a03c32d79a 100644 --- a/src/openrct2/config/Config.h +++ b/src/openrct2/config/Config.h @@ -176,24 +176,24 @@ struct NetworkConfiguration struct NotificationConfiguration { - bool park_award; - bool park_marketing_campaign_finished; - bool park_warnings; - bool park_rating_warnings; - bool ride_broken_down; - bool ride_crashed; - bool ride_casualties; - bool ride_warnings; - bool ride_researched; - bool ride_stalled_vehicles; - bool guest_warnings; - bool guest_left_park; - bool guest_queuing_for_ride; - bool guest_on_ride; - bool guest_left_ride; - bool guest_bought_item; - bool guest_used_facility; - bool guest_died; + bool ParkAward; + bool ParkMarketingCampaignFinished; + bool ParkWarnings; + bool ParkRatingWarnings; + bool RideBrokenDown; + bool RideCrashed; + bool RideCasualties; + bool RideWarnings; + bool RideResearched; + bool RideStalledVehicles; + bool GuestWarnings; + bool GuestLeftPark; + bool GuestQueuingForRide; + bool GuestOnRide; + bool GuestLeftRide; + bool GuestBoughtItem; + bool GuestUsedFacility; + bool GuestDied; }; struct FontConfiguration diff --git a/src/openrct2/entity/Guest.cpp b/src/openrct2/entity/Guest.cpp index 817ff8593f..12a6f6c6bf 100644 --- a/src/openrct2/entity/Guest.cpp +++ b/src/openrct2/entity/Guest.cpp @@ -1651,7 +1651,7 @@ bool Guest::DecideAndBuyItem(Ride* ride, ShopItem shopItem, money32 price) auto ft = Formatter(); FormatNameTo(ft); ft.Add(GetShopItemDescriptor(shopItem).Naming.Indefinite); - if (gConfigNotifications.guest_bought_item) + if (gConfigNotifications.GuestBoughtItem) { News::AddItemToQueue(News::ItemType::PeepOnRide, STR_PEEP_TRACKING_NOTIFICATION_BOUGHT_X, sprite_index, ft); } @@ -3568,7 +3568,7 @@ void PeepUpdateRideLeaveEntranceDefault(Guest* peep, Ride* ride, CoordsXYZD& ent auto ft = Formatter(); ride->FormatNameTo(ft); - if (gConfigNotifications.ride_warnings) + if (gConfigNotifications.RideWarnings) { News::AddItemToQueue(News::ItemType::Ride, STR_GUESTS_GETTING_STUCK_ON_RIDE, peep->CurrentRide.ToUnderlying(), ft); } @@ -3855,7 +3855,7 @@ void Guest::UpdateRideFreeVehicleEnterRide(Ride* ride) else msg_string = STR_PEEP_TRACKING_PEEP_IS_ON_X; - if (gConfigNotifications.guest_on_ride) + if (gConfigNotifications.GuestOnRide) { News::AddItemToQueue(News::ItemType::PeepOnRide, msg_string, sprite_index, ft); } @@ -4953,7 +4953,7 @@ void Guest::UpdateRideLeaveExit() FormatNameTo(ft); ride->FormatNameTo(ft); - if (gConfigNotifications.guest_left_ride) + if (gConfigNotifications.GuestLeftRide) { News::AddItemToQueue(News::ItemType::PeepOnRide, STR_PEEP_TRACKING_LEFT_RIDE_X, sprite_index, ft); } diff --git a/src/openrct2/entity/Peep.cpp b/src/openrct2/entity/Peep.cpp index 9d55ab9fe3..88fe657627 100644 --- a/src/openrct2/entity/Peep.cpp +++ b/src/openrct2/entity/Peep.cpp @@ -746,7 +746,7 @@ void Peep::UpdateFalling() if (Action == PeepActionType::Drowning) return; - if (gConfigNotifications.guest_died) + if (gConfigNotifications.GuestDied) { auto ft = Formatter(); FormatNameTo(ft); @@ -1124,7 +1124,7 @@ void peep_problem_warnings_update() else if (hungerCounter >= PEEP_HUNGER_WARNING_THRESHOLD && hungerCounter >= gNumGuestsInPark / 16) { warningThrottle[0] = 4; - if (gConfigNotifications.guest_warnings) + if (gConfigNotifications.GuestWarnings) { constexpr auto thoughtId = static_cast(PeepThoughtType::Hungry); News::AddItemToQueue(News::ItemType::Peeps, STR_PEEPS_ARE_HUNGRY, thoughtId, {}); @@ -1136,7 +1136,7 @@ void peep_problem_warnings_update() else if (thirstCounter >= PEEP_THIRST_WARNING_THRESHOLD && thirstCounter >= gNumGuestsInPark / 16) { warningThrottle[1] = 4; - if (gConfigNotifications.guest_warnings) + if (gConfigNotifications.GuestWarnings) { constexpr auto thoughtId = static_cast(PeepThoughtType::Thirsty); News::AddItemToQueue(News::ItemType::Peeps, STR_PEEPS_ARE_THIRSTY, thoughtId, {}); @@ -1148,7 +1148,7 @@ void peep_problem_warnings_update() else if (toiletCounter >= PEEP_TOILET_WARNING_THRESHOLD && toiletCounter >= gNumGuestsInPark / 16) { warningThrottle[2] = 4; - if (gConfigNotifications.guest_warnings) + if (gConfigNotifications.GuestWarnings) { constexpr auto thoughtId = static_cast(PeepThoughtType::Toilet); News::AddItemToQueue(News::ItemType::Peeps, STR_PEEPS_CANT_FIND_TOILET, thoughtId, {}); @@ -1160,7 +1160,7 @@ void peep_problem_warnings_update() else if (litterCounter >= PEEP_LITTER_WARNING_THRESHOLD && litterCounter >= gNumGuestsInPark / 32) { warningThrottle[3] = 4; - if (gConfigNotifications.guest_warnings) + if (gConfigNotifications.GuestWarnings) { constexpr auto thoughtId = static_cast(PeepThoughtType::BadLitter); News::AddItemToQueue(News::ItemType::Peeps, STR_PEEPS_DISLIKE_LITTER, thoughtId, {}); @@ -1172,7 +1172,7 @@ void peep_problem_warnings_update() else if (disgustCounter >= PEEP_DISGUST_WARNING_THRESHOLD && disgustCounter >= gNumGuestsInPark / 32) { warningThrottle[4] = 4; - if (gConfigNotifications.guest_warnings) + if (gConfigNotifications.GuestWarnings) { constexpr auto thoughtId = static_cast(PeepThoughtType::PathDisgusting); News::AddItemToQueue(News::ItemType::Peeps, STR_PEEPS_DISGUSTED_BY_PATHS, thoughtId, {}); @@ -1184,7 +1184,7 @@ void peep_problem_warnings_update() else if (vandalismCounter >= PEEP_VANDALISM_WARNING_THRESHOLD && vandalismCounter >= gNumGuestsInPark / 32) { warningThrottle[5] = 4; - if (gConfigNotifications.guest_warnings) + if (gConfigNotifications.GuestWarnings) { constexpr auto thoughtId = static_cast(PeepThoughtType::Vandalism); News::AddItemToQueue(News::ItemType::Peeps, STR_PEEPS_DISLIKE_VANDALISM, thoughtId, {}); @@ -1196,7 +1196,7 @@ void peep_problem_warnings_update() else if (noexitCounter >= PEEP_NOEXIT_WARNING_THRESHOLD) { warningThrottle[6] = 4; - if (gConfigNotifications.guest_warnings) + if (gConfigNotifications.GuestWarnings) { constexpr auto thoughtId = static_cast(PeepThoughtType::CantFindExit); News::AddItemToQueue(News::ItemType::Peeps, STR_PEEPS_GETTING_LOST_OR_STUCK, thoughtId, {}); @@ -1205,7 +1205,7 @@ void peep_problem_warnings_update() else if (lostCounter >= PEEP_LOST_WARNING_THRESHOLD) { warningThrottle[6] = 4; - if (gConfigNotifications.guest_warnings) + if (gConfigNotifications.GuestWarnings) { constexpr auto thoughtId = static_cast(PeepThoughtType::Lost); News::AddItemToQueue(News::ItemType::Peeps, STR_PEEPS_GETTING_LOST_OR_STUCK, thoughtId, {}); @@ -1218,7 +1218,7 @@ void peep_problem_warnings_update() { // The amount of guests complaining about queue duration is at least 5% of the amount of queuing guests. // This includes guests who are no longer queuing. warningThrottle[7] = 4; - if (gConfigNotifications.guest_warnings) + if (gConfigNotifications.GuestWarnings) { auto rideWithMostQueueComplaints = std::max_element( queueComplainingGuestsMap.begin(), queueComplainingGuestsMap.end(), @@ -1789,7 +1789,7 @@ static bool peep_interact_with_entrance(Peep* peep, const CoordsXYE& coords, uin auto ft = Formatter(); guest->FormatNameTo(ft); ride->FormatNameTo(ft); - if (gConfigNotifications.guest_queuing_for_ride) + if (gConfigNotifications.GuestQueuingForRide) { News::AddItemToQueue( News::ItemType::PeepOnRide, STR_PEEP_TRACKING_PEEP_JOINED_QUEUE_FOR_X, guest->sprite_index, ft); @@ -1850,7 +1850,7 @@ static bool peep_interact_with_entrance(Peep* peep, const CoordsXYE& coords, uin { auto ft = Formatter(); guest->FormatNameTo(ft); - if (gConfigNotifications.guest_left_park) + if (gConfigNotifications.GuestLeftPark) { News::AddItemToQueue(News::ItemType::PeepOnRide, STR_PEEP_TRACKING_LEFT_PARK, guest->sprite_index, ft); } @@ -2219,7 +2219,7 @@ static void peep_interact_with_path(Peep* peep, const CoordsXYE& coords) auto ft = Formatter(); guest->FormatNameTo(ft); ride->FormatNameTo(ft); - if (gConfigNotifications.guest_queuing_for_ride) + if (gConfigNotifications.GuestQueuingForRide) { News::AddItemToQueue( News::ItemType::PeepOnRide, STR_PEEP_TRACKING_PEEP_JOINED_QUEUE_FOR_X, guest->sprite_index, ft); @@ -2334,7 +2334,7 @@ static bool peep_interact_with_shop(Peep* peep, const CoordsXYE& coords) ride->FormatNameTo(ft); StringId string_id = ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_IN_RIDE) ? STR_PEEP_TRACKING_PEEP_IS_IN_X : STR_PEEP_TRACKING_PEEP_IS_ON_X; - if (gConfigNotifications.guest_used_facility) + if (gConfigNotifications.GuestUsedFacility) { News::AddItemToQueue(News::ItemType::PeepOnRide, string_id, guest->sprite_index, ft); } diff --git a/src/openrct2/management/Award.cpp b/src/openrct2/management/Award.cpp index 9be48e8693..1c4e694aca 100644 --- a/src/openrct2/management/Award.cpp +++ b/src/openrct2/management/Award.cpp @@ -631,7 +631,7 @@ void award_update_all() { // Add award _currentAwards.push_back(Award{ 5u, awardType }); - if (gConfigNotifications.park_award) + if (gConfigNotifications.ParkAward) { News::AddItemToQueue(News::ItemType::Award, AwardNewsStrings[EnumValue(awardType)], 0, {}); } diff --git a/src/openrct2/management/Marketing.cpp b/src/openrct2/management/Marketing.cpp index 0dada450bc..eda58db551 100644 --- a/src/openrct2/management/Marketing.cpp +++ b/src/openrct2/management/Marketing.cpp @@ -71,7 +71,7 @@ uint16_t marketing_get_campaign_guest_generation_probability(int32_t campaignTyp static void marketing_raise_finished_notification(const MarketingCampaign& campaign) { - if (gConfigNotifications.park_marketing_campaign_finished) + if (gConfigNotifications.ParkMarketingCampaignFinished) { Formatter ft; // This sets the string parameters for the marketing types that have an argument. diff --git a/src/openrct2/management/Research.cpp b/src/openrct2/management/Research.cpp index c743238dd2..a4ec99ea11 100644 --- a/src/openrct2/management/Research.cpp +++ b/src/openrct2/management/Research.cpp @@ -272,7 +272,7 @@ void research_finish_item(ResearchItem* researchItem) if (!gSilentResearch) { - if (gConfigNotifications.ride_researched) + if (gConfigNotifications.RideResearched) { News::AddItemToQueue(News::ItemType::Research, availabilityString, researchItem->rawValue, ft); } @@ -294,7 +294,7 @@ void research_finish_item(ResearchItem* researchItem) if (!gSilentResearch) { - if (gConfigNotifications.ride_researched) + if (gConfigNotifications.RideResearched) { News::AddItemToQueue( News::ItemType::Research, STR_NEWS_ITEM_RESEARCH_NEW_SCENERY_SET_AVAILABLE, researchItem->rawValue, ft); diff --git a/src/openrct2/ride/Ride.cpp b/src/openrct2/ride/Ride.cpp index bc87734578..9edb0875a2 100644 --- a/src/openrct2/ride/Ride.cpp +++ b/src/openrct2/ride/Ride.cpp @@ -1564,7 +1564,7 @@ void ride_prepare_breakdown(Ride* ride, int32_t breakdownReason) */ void ride_breakdown_add_news_item(Ride* ride) { - if (gConfigNotifications.ride_broken_down) + if (gConfigNotifications.RideBrokenDown) { Formatter ft; ride->FormatNameTo(ft); @@ -1591,7 +1591,7 @@ static void ride_breakdown_status_update(Ride* ride) if (!(ride->not_fixed_timeout & 15) && ride->mechanic_status != RIDE_MECHANIC_STATUS_FIXING && ride->mechanic_status != RIDE_MECHANIC_STATUS_HAS_FIXED_STATION_BRAKES) { - if (gConfigNotifications.ride_warnings) + if (gConfigNotifications.RideWarnings) { Formatter ft; ride->FormatNameTo(ft); @@ -2280,7 +2280,7 @@ static void ride_entrance_exit_connected(Ride* ride) // name of ride is parameter of the format string Formatter ft; ride->FormatNameTo(ft); - if (gConfigNotifications.ride_warnings) + if (gConfigNotifications.RideWarnings) { News::AddItemToQueue(News::ItemType::Ride, STR_ENTRANCE_NOT_CONNECTED, ride->id.ToUnderlying(), ft); } @@ -2292,7 +2292,7 @@ static void ride_entrance_exit_connected(Ride* ride) // name of ride is parameter of the format string Formatter ft; ride->FormatNameTo(ft); - if (gConfigNotifications.ride_warnings) + if (gConfigNotifications.RideWarnings) { News::AddItemToQueue(News::ItemType::Ride, STR_EXIT_NOT_CONNECTED, ride->id.ToUnderlying(), ft); } @@ -2359,7 +2359,7 @@ static void ride_shop_connected(Ride* ride) } // Name of ride is parameter of the format string - if (gConfigNotifications.ride_warnings) + if (gConfigNotifications.RideWarnings) { Formatter ft; ride->FormatNameTo(ft); @@ -5316,7 +5316,7 @@ void Ride::Crash(uint8_t vehicleIndex) } } - if (gConfigNotifications.ride_crashed) + if (gConfigNotifications.RideCrashed) { Formatter ft; FormatNameTo(ft); diff --git a/src/openrct2/ride/Vehicle.cpp b/src/openrct2/ride/Vehicle.cpp index c4211a2382..94612068d6 100644 --- a/src/openrct2/ride/Vehicle.cpp +++ b/src/openrct2/ride/Vehicle.cpp @@ -3410,7 +3410,7 @@ void Vehicle::CheckIfMissing() curRide->lifecycle_flags |= RIDE_LIFECYCLE_HAS_STALLED_VEHICLE; - if (gConfigNotifications.ride_stalled_vehicles) + if (gConfigNotifications.RideStalledVehicles) { Formatter ft; ft.Add(GetRideComponentName(GetRideTypeDescriptor(curRide->type).NameConvention.vehicle).number); @@ -5168,7 +5168,7 @@ static void ride_train_crash(Ride* ride, uint16_t numFatalities) if (numFatalities != 0) { - if (gConfigNotifications.ride_casualties) + if (gConfigNotifications.RideCasualties) { ride->FormatNameTo(ft); News::AddItemToQueue( diff --git a/src/openrct2/scenario/Scenario.cpp b/src/openrct2/scenario/Scenario.cpp index 1f816150f5..ff7fa97132 100644 --- a/src/openrct2/scenario/Scenario.cpp +++ b/src/openrct2/scenario/Scenario.cpp @@ -254,7 +254,7 @@ static void scenario_entrance_fee_too_high_check() auto y = entrance.y + 16; uint32_t packed_xy = (y << 16) | x; - if (gConfigNotifications.park_warnings) + if (gConfigNotifications.ParkWarnings) { News::AddItemToQueue(News::ItemType::Blank, STR_ENTRANCE_FEE_TOO_HI, packed_xy, {}); } @@ -700,28 +700,28 @@ ObjectiveStatus Objective::CheckGuestsAndRating() const gScenarioParkRatingWarningDays++; if (gScenarioParkRatingWarningDays == 1) { - if (gConfigNotifications.park_rating_warnings) + if (gConfigNotifications.ParkRatingWarnings) { News::AddItemToQueue(News::ItemType::Graph, STR_PARK_RATING_WARNING_4_WEEKS_REMAINING, 0, {}); } } else if (gScenarioParkRatingWarningDays == 8) { - if (gConfigNotifications.park_rating_warnings) + if (gConfigNotifications.ParkRatingWarnings) { News::AddItemToQueue(News::ItemType::Graph, STR_PARK_RATING_WARNING_3_WEEKS_REMAINING, 0, {}); } } else if (gScenarioParkRatingWarningDays == 15) { - if (gConfigNotifications.park_rating_warnings) + if (gConfigNotifications.ParkRatingWarnings) { News::AddItemToQueue(News::ItemType::Graph, STR_PARK_RATING_WARNING_2_WEEKS_REMAINING, 0, {}); } } else if (gScenarioParkRatingWarningDays == 22) { - if (gConfigNotifications.park_rating_warnings) + if (gConfigNotifications.ParkRatingWarnings) { News::AddItemToQueue(News::ItemType::Graph, STR_PARK_RATING_WARNING_1_WEEK_REMAINING, 0, {}); }