Skip to content

Commit 2ba66fc

Browse files
Merge branch 'develop' into loadsave-toolbar
2 parents b8989c4 + a69390c commit 2ba66fc

File tree

8 files changed

+8
-7
lines changed

8 files changed

+8
-7
lines changed

distribution/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Improved: [#23677] Building new ride track now inherits the colour scheme from the previous piece.
66
- Improved: [#23720] Text fields now allow cutting to clipboard (Ctrl+X) in addition to copy and paste.
77
- Improved: [#23874] The load/save file browser window now uses icons for its action buttons.
8+
- Improved: [#23875] Rides forbidden to be modified or destroyed can now be edited with the All destructible cheat.
89
- Fix: [#1972, #11679] Vehicles passing by toilets can cause them to glitch (original bug).
910
- Fix: [#9999, #10000, #10001, #10002, #10003] Truncated scenario strings when using Catalan, Czech, Japanese, Polish or Russian.
1011
- Fix: [#14486] Guests will fall through upwards sloped paths when making their way through a park entrance or ride exit (original bug).

src/openrct2/network/NetworkBase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ using namespace OpenRCT2;
4949
// It is used for making sure only compatible builds get connected, even within
5050
// single OpenRCT2 version.
5151

52-
constexpr uint8_t kNetworkStreamVersion = 2;
52+
constexpr uint8_t kNetworkStreamVersion = 3;
5353

5454
const std::string kNetworkStreamID = std::string(kOpenRCT2Version) + "-" + std::to_string(kNetworkStreamVersion);
5555

src/openrct2/park/Legacy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2292,7 +2292,7 @@ const std::vector<std::string_view> peepAnimObjects = {
22922292
"rct2.peep_animations.entertainer_snowman",
22932293
};
22942294

2295-
const std::vector<std::string_view>& GetLegacyPeepAnimationObjects(const ObjectList& entryList)
2295+
const std::vector<std::string_view>& GetLegacyPeepAnimationObjects()
22962296
{
22972297
return peepAnimObjects;
22982298
}

src/openrct2/park/Legacy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void UpdateFootpathsFromMapping(
4040
ObjectList& requiredObjects, ObjectEntryIndex& surfaceCount, ObjectEntryIndex& railingCount, ObjectEntryIndex entryIndex,
4141
const OpenRCT2::RCT2::FootpathMapping* footpathMapping);
4242

43-
const std::vector<std::string_view>& GetLegacyPeepAnimationObjects(const ObjectList& entryList);
43+
const std::vector<std::string_view>& GetLegacyPeepAnimationObjects();
4444
void ConvertPeepAnimationTypeToObjects(OpenRCT2::GameState_t& gameState);
4545

4646
/**

src/openrct2/park/ParkFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ namespace OpenRCT2
385385

386386
if (version < kPeepAnimationObjectsVersion)
387387
{
388-
auto animObjects = GetLegacyPeepAnimationObjects(requiredObjects);
388+
auto animObjects = GetLegacyPeepAnimationObjects();
389389
AppendRequiredObjects(requiredObjects, ObjectType::peepAnimations, animObjects);
390390
}
391391

src/openrct2/rct1/S4Importer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1559,7 +1559,7 @@ namespace OpenRCT2::RCT1
15591559
AppendRequiredObjects(result, ObjectType::scenarioText, std::vector<std::string_view>({ desc.textObjectId }));
15601560

15611561
// Add all legacy peep animation objects
1562-
auto animObjects = GetLegacyPeepAnimationObjects(result);
1562+
auto animObjects = GetLegacyPeepAnimationObjects();
15631563
AppendRequiredObjects(result, ObjectType::peepAnimations, animObjects);
15641564

15651565
return result;

src/openrct2/rct2/S6Importer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1904,7 +1904,7 @@ namespace OpenRCT2::RCT2
19041904
AppendRequiredObjects(
19051905
objectList, ObjectType::scenarioText, std::vector<std::string_view>({ desc.textObjectId }));
19061906

1907-
auto animObjects = GetLegacyPeepAnimationObjects(objectList);
1907+
auto animObjects = GetLegacyPeepAnimationObjects();
19081908
AppendRequiredObjects(objectList, ObjectType::peepAnimations, animObjects);
19091909

19101910
return objectList;

src/openrct2/ride/RideConstruction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ bool RideModify(const CoordsXYE& input)
966966
if (rideEntry == nullptr || !ride_check_if_construction_allowed(*ride))
967967
return false;
968968

969-
if (ride->lifecycle_flags & RIDE_LIFECYCLE_INDESTRUCTIBLE)
969+
if (ride->lifecycle_flags & RIDE_LIFECYCLE_INDESTRUCTIBLE && !GetGameState().Cheats.makeAllDestructible)
970970
{
971971
Formatter ft;
972972
ride->FormatNameTo(ft);

0 commit comments

Comments
 (0)