forked from rosebudai/OpenRCT2-Web
Exempt frozen peeps from being removed (#24101)
This commit is contained in:
1 parent
ff6e8c69fa
commit
e427d6424c
3 files changed
+7
-1
No files matched your search
@@ -6,6 +6,7 @@
|
||||
- Change: [#23936] The ‘guests prefer less/more intense rides’ settings have been turned into a dropdown.
|
||||
- Change: [#24067] [Plugin] Registered menu items are now listed alphabetically.
|
||||
- Change: [#24070] Footpath selection menus now show object names on hover using a tooltip.
|
||||
- Change: [#24101] Frozen peeps are no longer removed when using the 'remove all guests' cheat.
|
||||
- Fix: [#4225] Ride Construction window offers non-existent banked sloped to level curve (original bug).
|
||||
- Fix: [#5281] Missing supports on miniature railways built backwards.
|
||||
- Fix: [#10379] Banners outside the park can be renamed and modified (original bug).
|
||||
|
||||
@@ -761,6 +761,11 @@ void CheatSetAction::RemoveAllGuests() const
|
||||
// will be fetched on a deleted guest.
|
||||
for (auto guest : EntityList<Guest>())
|
||||
{
|
||||
// Frozen peeps are usually placed and tweaked for artistic purposes,
|
||||
// so exempt them from being removed.
|
||||
if (guest->PeepFlags & PEEP_FLAGS_POSITION_FROZEN)
|
||||
continue;
|
||||
|
||||
guest->Remove();
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ using namespace OpenRCT2;
|
||||
// It is used for making sure only compatible builds get connected, even within
|
||||
// single OpenRCT2 version.
|
||||
|
||||
constexpr uint8_t kNetworkStreamVersion = 1;
|
||||
constexpr uint8_t kNetworkStreamVersion = 2;
|
||||
|
||||
const std::string kNetworkStreamID = std::string(kOpenRCT2Version) + "-" + std::to_string(kNetworkStreamVersion);
|
||||
|
||||
|
||||
Reference in new issue
Block a user