From 0dd5b3bbda6d959d67070ce06d46b688c795cc8f Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Mon, 8 Jun 2020 14:04:07 +0200 Subject: [PATCH 1/7] Clean up current_ride --- src/openrct2/Game.cpp | 4 ++-- src/openrct2/peep/GuestPathfinding.cpp | 10 +++++----- src/openrct2/peep/Peep.h | 7 ++++++- src/openrct2/world/Entrance.h | 3 +++ 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/openrct2/Game.cpp b/src/openrct2/Game.cpp index 0356c9d301..a628c3115a 100644 --- a/src/openrct2/Game.cpp +++ b/src/openrct2/Game.cpp @@ -453,8 +453,8 @@ void game_fix_save_vars() { if (peep->CurrentRideStation >= MAX_STATIONS) { - const uint8_t srcStation = peep->CurrentRideStation; - const uint8_t rideIdx = peep->CurrentRide; + const auto srcStation = peep->CurrentRideStation; + const auto rideIdx = peep->CurrentRide; if (rideIdx == RIDE_ID_NULL) { continue; diff --git a/src/openrct2/peep/GuestPathfinding.cpp b/src/openrct2/peep/GuestPathfinding.cpp index 71914db0cf..ec616d84ab 100644 --- a/src/openrct2/peep/GuestPathfinding.cpp +++ b/src/openrct2/peep/GuestPathfinding.cpp @@ -1645,15 +1645,15 @@ static int32_t guest_path_find_leaving_park(Peep* peep, uint8_t edges) static int32_t guest_path_find_park_entrance(Peep* peep, uint8_t edges) { // If entrance no longer exists, choose a new one - if ((peep->PeepFlags & PEEP_FLAGS_PARK_ENTRANCE_CHOSEN) && peep->CurrentRide >= gParkEntrances.size()) + if ((peep->PeepFlags & PEEP_FLAGS_PARK_ENTRANCE_CHOSEN) && peep->ChosenParkEntrance >= gParkEntrances.size()) { - peep->CurrentRide = RIDE_ID_NULL; + peep->ChosenParkEntrance = PARK_ENTRANCE_INDEX_NULL; peep->PeepFlags &= ~(PEEP_FLAGS_PARK_ENTRANCE_CHOSEN); } if (!(peep->PeepFlags & PEEP_FLAGS_PARK_ENTRANCE_CHOSEN)) { - uint8_t chosenEntrance = 0xFF; + uint8_t chosenEntrance = PARK_ENTRANCE_INDEX_NULL; uint16_t nearestDist = 0xFFFF; uint8_t entranceNum = 0; for (const auto& entrance : gParkEntrances) @@ -1670,11 +1670,11 @@ static int32_t guest_path_find_park_entrance(Peep* peep, uint8_t edges) if (chosenEntrance == 0xFF) return guest_path_find_aimless(peep, edges); - peep->CurrentRide = chosenEntrance; + peep->ChosenParkEntrance = chosenEntrance; peep->PeepFlags |= PEEP_FLAGS_PARK_ENTRANCE_CHOSEN; } - const auto& entrance = gParkEntrances[peep->CurrentRide]; + const auto& entrance = gParkEntrances[peep->ChosenParkEntrance]; gPeepPathFindGoalPosition = TileCoordsXYZ(entrance); gPeepPathFindIgnoreForeignQueues = true; diff --git a/src/openrct2/peep/Peep.h b/src/openrct2/peep/Peep.h index e001a44680..f4755b623a 100644 --- a/src/openrct2/peep/Peep.h +++ b/src/openrct2/peep/Peep.h @@ -49,6 +49,7 @@ class Formatter; struct TileElement; struct Ride; class GameActionResult; +using ParkEntranceIndex = uint8_t; enum PeepType : uint8_t { @@ -636,7 +637,11 @@ struct Peep : SpriteBase uint8_t Photo2RideRef; uint8_t Photo3RideRef; uint8_t Photo4RideRef; - uint8_t CurrentRide; + union + { + ride_id_t CurrentRide; + ParkEntranceIndex ChosenParkEntrance; + }; StationIndex CurrentRideStation; uint8_t CurrentTrain; union diff --git a/src/openrct2/world/Entrance.h b/src/openrct2/world/Entrance.h index 9413916a4b..a398d7423c 100644 --- a/src/openrct2/world/Entrance.h +++ b/src/openrct2/world/Entrance.h @@ -40,6 +40,9 @@ extern CoordsXYZD gParkEntranceGhostPosition; constexpr int32_t MaxRideEntranceOrExitHeight = 244 * COORDS_Z_STEP; +using ParkEntranceIndex = uint8_t; +constexpr const ParkEntranceIndex PARK_ENTRANCE_INDEX_NULL = 255; + extern std::vector gParkEntrances; extern CoordsXYZD gRideEntranceExitGhostPosition; From 65fa08ef357527febabbcca562091bfabc665405 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Mon, 8 Jun 2020 14:06:00 +0200 Subject: [PATCH 2/7] Clean up GuestHeadingToRideId --- src/openrct2/peep/Guest.cpp | 2 +- src/openrct2/peep/GuestPathfinding.cpp | 2 +- src/openrct2/peep/Peep.cpp | 8 ++++---- src/openrct2/peep/Peep.h | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/openrct2/peep/Guest.cpp b/src/openrct2/peep/Guest.cpp index d76625bbdd..c080c8fcad 100644 --- a/src/openrct2/peep/Guest.cpp +++ b/src/openrct2/peep/Guest.cpp @@ -6925,5 +6925,5 @@ void Guest::UpdateSpriteType() bool Guest::HeadingForRideOrParkExit() const { - return (PeepFlags & PEEP_FLAGS_LEAVING_PARK) || (GuestHeadingToRideId != 0xFF); + return (PeepFlags & PEEP_FLAGS_LEAVING_PARK) || (GuestHeadingToRideId != RIDE_ID_NULL); } diff --git a/src/openrct2/peep/GuestPathfinding.cpp b/src/openrct2/peep/GuestPathfinding.cpp index ec616d84ab..3d5fc6946f 100644 --- a/src/openrct2/peep/GuestPathfinding.cpp +++ b/src/openrct2/peep/GuestPathfinding.cpp @@ -2052,7 +2052,7 @@ int32_t guest_path_finding(Guest* peep) return guest_path_find_park_entrance(peep, edges); } - if (peep->GuestHeadingToRideId == 0xFF) + if (peep->GuestHeadingToRideId == RIDE_ID_NULL) { #if defined(DEBUG_LEVEL_1) && DEBUG_LEVEL_1 if (gPathFindDebug) diff --git a/src/openrct2/peep/Peep.cpp b/src/openrct2/peep/Peep.cpp index f51dc7f8e9..3657903772 100644 --- a/src/openrct2/peep/Peep.cpp +++ b/src/openrct2/peep/Peep.cpp @@ -1181,7 +1181,7 @@ void peep_problem_warnings_update() break; case PEEP_THOUGHT_TYPE_HUNGRY: // 0x14 - if (peep->GuestHeadingToRideId == 0xFF) + if (peep->GuestHeadingToRideId == RIDE_ID_NULL) { hunger_counter++; break; @@ -1192,7 +1192,7 @@ void peep_problem_warnings_update() break; case PEEP_THOUGHT_TYPE_THIRSTY: - if (peep->GuestHeadingToRideId == 0xFF) + if (peep->GuestHeadingToRideId == RIDE_ID_NULL) { thirst_counter++; break; @@ -1203,7 +1203,7 @@ void peep_problem_warnings_update() break; case PEEP_THOUGHT_TYPE_TOILET: - if (peep->GuestHeadingToRideId == 0xFF) + if (peep->GuestHeadingToRideId == RIDE_ID_NULL) { toilet_counter++; break; @@ -2940,7 +2940,7 @@ static bool peep_interact_with_shop(Peep* peep, int16_t x, int16_t y, TileElemen else { if (peep->GuestHeadingToRideId == rideIndex) - peep->GuestHeadingToRideId = 0xFF; + peep->GuestHeadingToRideId = RIDE_ID_NULL; peep->ActionSpriteImageOffset = _unk_F1AEF0; peep->SetState(PEEP_STATE_BUYING); peep->CurrentRide = rideIndex; diff --git a/src/openrct2/peep/Peep.h b/src/openrct2/peep/Peep.h index f4755b623a..51a74a6285 100644 --- a/src/openrct2/peep/Peep.h +++ b/src/openrct2/peep/Peep.h @@ -695,7 +695,7 @@ struct Peep : SpriteBase union { uint8_t StaffId; - uint8_t GuestHeadingToRideId; + ride_id_t GuestHeadingToRideId; }; union { From db764445eda07da2f52503b18c0b3a988c60aefe Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Mon, 8 Jun 2020 14:12:28 +0200 Subject: [PATCH 3/7] Clean up photo refs --- src/openrct2/peep/Peep.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openrct2/peep/Peep.h b/src/openrct2/peep/Peep.h index 51a74a6285..abb874455e 100644 --- a/src/openrct2/peep/Peep.h +++ b/src/openrct2/peep/Peep.h @@ -634,9 +634,9 @@ struct Peep : SpriteBase money16 PaidOnDrink; uint8_t RideTypesBeenOn[16]; uint32_t ItemExtraFlags; - uint8_t Photo2RideRef; - uint8_t Photo3RideRef; - uint8_t Photo4RideRef; + ride_id_t Photo2RideRef; + ride_id_t Photo3RideRef; + ride_id_t Photo4RideRef; union { ride_id_t CurrentRide; @@ -702,7 +702,7 @@ struct Peep : SpriteBase uint8_t StaffOrders; uint8_t GuestIsLostCountdown; }; - uint8_t Photo1RideRef; + ride_id_t Photo1RideRef; uint32_t PeepFlags; rct12_xyzd8 PathfindGoal; rct12_xyzd8 PathfindHistory[4]; From e8d6383f5774ba7e80da79983d3ff44818285f8c Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Mon, 8 Jun 2020 14:23:33 +0200 Subject: [PATCH 4/7] Clean up voucher arguments --- src/openrct2-ui/windows/Guest.cpp | 4 ++-- src/openrct2/GameStateSnapshots.cpp | 2 +- src/openrct2/actions/RideDemolishAction.hpp | 2 +- src/openrct2/management/Marketing.cpp | 4 ++-- src/openrct2/management/Marketing.h | 3 ++- src/openrct2/peep/Guest.cpp | 8 ++++---- src/openrct2/peep/Peep.h | 7 ++++++- src/openrct2/rct1/S4Importer.cpp | 2 +- src/openrct2/rct2/S6Exporter.cpp | 2 +- src/openrct2/rct2/S6Importer.cpp | 2 +- src/openrct2/ride/RideData.h | 2 +- src/openrct2/ride/ShopItem.h | 2 ++ test/tests/S6ImportExportTests.cpp | 2 +- 13 files changed, 25 insertions(+), 17 deletions(-) diff --git a/src/openrct2-ui/windows/Guest.cpp b/src/openrct2-ui/windows/Guest.cpp index 1a10488506..bc1583fd37 100644 --- a/src/openrct2-ui/windows/Guest.cpp +++ b/src/openrct2-ui/windows/Guest.cpp @@ -1988,7 +1988,7 @@ static rct_string_id window_guest_inventory_format_item(Peep* peep, int32_t item ft.Add(parkName); break; case VOUCHER_TYPE_RIDE_FREE: - ride = get_ride(peep->VoucherArguments); + ride = get_ride(peep->VoucherRideId); if (ride != nullptr) { ft.Rewind(); @@ -2008,7 +2008,7 @@ static rct_string_id window_guest_inventory_format_item(Peep* peep, int32_t item ft.Rewind(); ft.Increment(6); ft.Add(STR_PEEP_INVENTORY_VOUCHER_FOOD_OR_DRINK_FREE); - ft.Add(ShopItems[peep->VoucherArguments].Naming.Singular); + ft.Add(ShopItems[peep->VoucherShopItem].Naming.Singular); break; } break; diff --git a/src/openrct2/GameStateSnapshots.cpp b/src/openrct2/GameStateSnapshots.cpp index a46b0a48a8..17e713271f 100644 --- a/src/openrct2/GameStateSnapshots.cpp +++ b/src/openrct2/GameStateSnapshots.cpp @@ -304,7 +304,7 @@ struct GameStateSnapshots final : public IGameStateSnapshots COMPARE_FIELD(Peep, AmountOfSouvenirs); COMPARE_FIELD(Peep, VandalismSeen); COMPARE_FIELD(Peep, VoucherType); - COMPARE_FIELD(Peep, VoucherArguments); + COMPARE_FIELD(Peep, VoucherRideId); COMPARE_FIELD(Peep, SurroundingsThoughtTimeout); COMPARE_FIELD(Peep, Angriness); COMPARE_FIELD(Peep, TimeLost); diff --git a/src/openrct2/actions/RideDemolishAction.hpp b/src/openrct2/actions/RideDemolishAction.hpp index 87506d6b1b..97ee2f4430 100644 --- a/src/openrct2/actions/RideDemolishAction.hpp +++ b/src/openrct2/actions/RideDemolishAction.hpp @@ -176,7 +176,7 @@ private: // remove any free voucher for this ride from peep if (peep->ItemStandardFlags & PEEP_ITEM_VOUCHER) { - if (peep->VoucherType == VOUCHER_TYPE_RIDE_FREE && peep->VoucherArguments == _rideIndex) + if (peep->VoucherType == VOUCHER_TYPE_RIDE_FREE && peep->VoucherRideId == _rideIndex) { peep->ItemStandardFlags &= ~(PEEP_ITEM_VOUCHER); } diff --git a/src/openrct2/management/Marketing.cpp b/src/openrct2/management/Marketing.cpp index 9ad7e31e63..610e4c7a4c 100644 --- a/src/openrct2/management/Marketing.cpp +++ b/src/openrct2/management/Marketing.cpp @@ -141,7 +141,7 @@ void marketing_set_guest_campaign(Peep* peep, int32_t campaignType) case ADVERTISING_CAMPAIGN_RIDE_FREE: peep->ItemStandardFlags |= PEEP_ITEM_VOUCHER; peep->VoucherType = VOUCHER_TYPE_RIDE_FREE; - peep->VoucherArguments = campaign->RideId; + peep->VoucherRideId = campaign->RideId; peep->GuestHeadingToRideId = campaign->RideId; peep->GuestIsLostCountdown = 240; break; @@ -152,7 +152,7 @@ void marketing_set_guest_campaign(Peep* peep, int32_t campaignType) case ADVERTISING_CAMPAIGN_FOOD_OR_DRINK_FREE: peep->ItemStandardFlags |= PEEP_ITEM_VOUCHER; peep->VoucherType = VOUCHER_TYPE_FOOD_OR_DRINK_FREE; - peep->VoucherArguments = campaign->ShopItemType; + peep->VoucherShopItem = campaign->ShopItemType; break; case ADVERTISING_CAMPAIGN_PARK: break; diff --git a/src/openrct2/management/Marketing.h b/src/openrct2/management/Marketing.h index 36c931754b..21892ed472 100644 --- a/src/openrct2/management/Marketing.h +++ b/src/openrct2/management/Marketing.h @@ -12,6 +12,7 @@ #include "../Cheats.h" #include "../common.h" #include "../peep/Peep.h" +#include "../ride/ShopItem.h" #include @@ -48,7 +49,7 @@ struct MarketingCampaign union { ride_id_t RideId{}; - uint8_t ShopItemType; + ShopItemIndex ShopItemType; }; }; diff --git a/src/openrct2/peep/Guest.cpp b/src/openrct2/peep/Guest.cpp index c080c8fcad..1e275451f4 100644 --- a/src/openrct2/peep/Guest.cpp +++ b/src/openrct2/peep/Guest.cpp @@ -1483,7 +1483,7 @@ bool Guest::DecideAndBuyItem(Ride* ride, int32_t shopItem, money32 price) bool hasVoucher = false; if ((ItemStandardFlags & PEEP_ITEM_VOUCHER) && (VoucherType == VOUCHER_TYPE_FOOD_OR_DRINK_FREE) - && (VoucherArguments == shopItem)) + && (VoucherShopItem == shopItem)) { hasVoucher = true; } @@ -2415,7 +2415,7 @@ void Guest::ReadMap() static bool peep_has_voucher_for_free_ride(Peep* peep, Ride* ride) { return peep->ItemStandardFlags & PEEP_ITEM_VOUCHER && peep->VoucherType == VOUCHER_TYPE_RIDE_FREE - && peep->VoucherArguments == ride->id; + && peep->VoucherRideId == ride->id; } /** @@ -2636,7 +2636,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->ItemStandardFlags & PEEP_ITEM_VOUCHER) && peep->VoucherType == VOUCHER_TYPE_RIDE_FREE - && peep->VoucherArguments == peep->CurrentRide) + && peep->VoucherRideId == peep->CurrentRide) return true; if (peep->CashInPocket <= 0 && !(gParkFlags & PARK_FLAGS_NO_MONEY)) @@ -3856,7 +3856,7 @@ void Guest::UpdateRideFreeVehicleEnterRide(Ride* ride) if (ridePrice != 0) { if ((ItemStandardFlags & PEEP_ITEM_VOUCHER) && (VoucherType == VOUCHER_TYPE_RIDE_FREE) - && (VoucherArguments == CurrentRide)) + && (VoucherRideId == CurrentRide)) { ItemStandardFlags &= ~PEEP_ITEM_VOUCHER; WindowInvalidateFlags |= PEEP_INVALIDATE_PEEP_INVENTORY; diff --git a/src/openrct2/peep/Peep.h b/src/openrct2/peep/Peep.h index abb874455e..fbc3717e48 100644 --- a/src/openrct2/peep/Peep.h +++ b/src/openrct2/peep/Peep.h @@ -15,6 +15,7 @@ #include "../rct12/RCT12.h" #include "../ride/Ride.h" #include "../ride/RideTypes.h" +#include "../ride/ShopItem.h" #include "../world/Location.hpp" #include "../world/SpriteBase.h" @@ -743,7 +744,11 @@ struct Peep : SpriteBase uint8_t AmountOfSouvenirs; uint8_t VandalismSeen; // 0xC0 vandalism thought timeout, 0x3F vandalism tiles seen uint8_t VoucherType; - uint8_t VoucherArguments; // ride_id or string_offset_id + union + { + ride_id_t VoucherRideId; + ShopItemIndex VoucherShopItem; + }; uint8_t SurroundingsThoughtTimeout; uint8_t Angriness; uint8_t TimeLost; // the time the peep has been lost when it reaches 254 generates the lost thought diff --git a/src/openrct2/rct1/S4Importer.cpp b/src/openrct2/rct1/S4Importer.cpp index f2ac683685..b1d1ff7a20 100644 --- a/src/openrct2/rct1/S4Importer.cpp +++ b/src/openrct2/rct1/S4Importer.cpp @@ -1493,7 +1493,7 @@ private: dst->PaidOnFood = src->paid_on_food; dst->PaidOnSouvenirs = src->paid_on_souvenirs; - dst->VoucherArguments = src->voucher_arguments; + dst->VoucherRideId = src->voucher_arguments; dst->VoucherType = src->voucher_type; dst->SurroundingsThoughtTimeout = src->surroundings_thought_timeout; diff --git a/src/openrct2/rct2/S6Exporter.cpp b/src/openrct2/rct2/S6Exporter.cpp index a561e2f591..4d2b2bdd69 100644 --- a/src/openrct2/rct2/S6Exporter.cpp +++ b/src/openrct2/rct2/S6Exporter.cpp @@ -1228,7 +1228,7 @@ void S6Exporter::ExportSpritePeep(RCT2SpritePeep* dst, const Peep* src) dst->no_of_souvenirs = src->AmountOfSouvenirs; dst->vandalism_seen = src->VandalismSeen; dst->voucher_type = src->VoucherType; - dst->voucher_arguments = src->VoucherArguments; + dst->voucher_arguments = src->VoucherRideId; dst->surroundings_thought_timeout = src->SurroundingsThoughtTimeout; dst->angriness = src->Angriness; dst->time_lost = src->TimeLost; diff --git a/src/openrct2/rct2/S6Importer.cpp b/src/openrct2/rct2/S6Importer.cpp index 8581e99f44..0431b41d51 100644 --- a/src/openrct2/rct2/S6Importer.cpp +++ b/src/openrct2/rct2/S6Importer.cpp @@ -1510,7 +1510,7 @@ public: dst->AmountOfSouvenirs = src->no_of_souvenirs; dst->VandalismSeen = src->vandalism_seen; dst->VoucherType = src->voucher_type; - dst->VoucherArguments = src->voucher_arguments; + dst->VoucherRideId = src->voucher_arguments; dst->SurroundingsThoughtTimeout = src->surroundings_thought_timeout; dst->Angriness = src->angriness; dst->TimeLost = src->time_lost; diff --git a/src/openrct2/ride/RideData.h b/src/openrct2/ride/RideData.h index 5ea9f64b59..f8049e9ffa 100644 --- a/src/openrct2/ride/RideData.h +++ b/src/openrct2/ride/RideData.h @@ -165,7 +165,7 @@ struct RideTypeDescriptor money16 DefaultPrices[NUM_SHOP_ITEMS_PER_RIDE]; uint8_t DefaultMusic; /** rct2: 0x0097D7CB */ - uint8_t PhotoItem; + ShopItemIndex PhotoItem; /** rct2: 0x0097D21E */ uint8_t BonusValue; track_colour_preset_list ColourPresets; diff --git a/src/openrct2/ride/ShopItem.h b/src/openrct2/ride/ShopItem.h index c7efe57992..c2d58e4759 100644 --- a/src/openrct2/ride/ShopItem.h +++ b/src/openrct2/ride/ShopItem.h @@ -11,6 +11,8 @@ #include "../common.h" +using ShopItemIndex = uint8_t; + struct Ride; enum diff --git a/test/tests/S6ImportExportTests.cpp b/test/tests/S6ImportExportTests.cpp index 05a3adc737..536272f734 100644 --- a/test/tests/S6ImportExportTests.cpp +++ b/test/tests/S6ImportExportTests.cpp @@ -256,7 +256,7 @@ static void CompareSpriteDataPeep(const Peep& left, const Peep& right) COMPARE_FIELD(AmountOfSouvenirs); COMPARE_FIELD(VandalismSeen); COMPARE_FIELD(VoucherType); - COMPARE_FIELD(VoucherArguments); + COMPARE_FIELD(VoucherRideId); COMPARE_FIELD(SurroundingsThoughtTimeout); COMPARE_FIELD(Angriness); COMPARE_FIELD(TimeLost); From bf5ffdf49740289005b9299f54963453a6b4f45e Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Mon, 8 Jun 2020 14:25:20 +0200 Subject: [PATCH 5/7] Clean up favourite ride --- src/openrct2/peep/Peep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/peep/Peep.h b/src/openrct2/peep/Peep.h index fbc3717e48..a20a27e183 100644 --- a/src/openrct2/peep/Peep.h +++ b/src/openrct2/peep/Peep.h @@ -756,7 +756,7 @@ struct Peep : SpriteBase uint8_t BalloonColour; uint8_t UmbrellaColour; uint8_t HatColour; - uint8_t FavouriteRide; + ride_id_t FavouriteRide; uint8_t FavouriteRideRating; uint32_t ItemStandardFlags; From 7cc510f6b74d622a0fd5369d405f9e9c77e2a57a Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Tue, 7 Jul 2020 21:14:16 +0200 Subject: [PATCH 6/7] Increment network version --- src/openrct2/network/Network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/network/Network.cpp b/src/openrct2/network/Network.cpp index d3c8e4562c..a1e8eeb6b4 100644 --- a/src/openrct2/network/Network.cpp +++ b/src/openrct2/network/Network.cpp @@ -32,7 +32,7 @@ // This string specifies which version of network stream current build uses. // It is used for making sure only compatible builds get connected, even within // single OpenRCT2 version. -#define NETWORK_STREAM_VERSION "19" +#define NETWORK_STREAM_VERSION "20" #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION static Peep* _pickup_peep = nullptr; From d25e3b6bb1f06dbf2cd624ac2f6197cdbc640c69 Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Tue, 7 Jul 2020 13:18:09 +0100 Subject: [PATCH 7/7] Update replays --- CMakeLists.txt | 4 ++-- openrct2.proj | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bc9b9ea508..07b99489e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,8 +29,8 @@ set(TITLE_SEQUENCE_SHA1 "304d13a126c15bf2c86ff13b81a2f2cc1856ac8d") set(OBJECTS_URL "https://github.com/OpenRCT2/objects/releases/download/v1.0.15/objects.zip") set(OBJECTS_SHA1 "dfd5864cf7d0449c0fb280c5c6b902a24816df6c") -set(REPLAYS_URL "https://github.com/OpenRCT2/replays/releases/download/v0.0.13/replays.zip") -set(REPLAYS_SHA1 "75598ff319fa18da782e38feb69b65d6d69d1458") +set(REPLAYS_URL "https://github.com/OpenRCT2/replays/releases/download/v0.0.14/replays.zip") +set(REPLAYS_SHA1 "5A0198B4337A43199702F5ED6069161C8A735332") option(FORCE32 "Force 32-bit build. It will add `-m32` to compiler flags.") option(WITH_TESTS "Build tests") diff --git a/openrct2.proj b/openrct2.proj index 9eba947523..c7922fb424 100644 --- a/openrct2.proj +++ b/openrct2.proj @@ -48,8 +48,8 @@ 304d13a126c15bf2c86ff13b81a2f2cc1856ac8d https://github.com/OpenRCT2/objects/releases/download/v1.0.15/objects.zip dfd5864cf7d0449c0fb280c5c6b902a24816df6c - https://github.com/OpenRCT2/replays/releases/download/v0.0.13/replays.zip - 75598ff319fa18da782e38feb69b65d6d69d1458 + https://github.com/OpenRCT2/replays/releases/download/v0.0.14/replays.zip + 5A0198B4337A43199702F5ED6069161C8A735332