1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Merge pull request #7919 from ZehMatt/gameaction-paused

Fix #7910: Allow game actions while paused if requested from callee.
This commit is contained in:
Aaron van Geffen
2018-08-25 17:19:17 +02:00
committed by GitHub
5 changed files with 10 additions and 22 deletions

View File

@@ -119,12 +119,19 @@ public:
virtual uint16_t GetActionFlags() const
{
// Make sure we execute some things only on the client.
uint16_t flags = 0;
if ((GetFlags() & GAME_COMMAND_FLAG_GHOST) != 0 || (GetFlags() & GAME_COMMAND_FLAG_5) != 0)
{
return GA_FLAGS::CLIENT_ONLY;
flags |= GA_FLAGS::CLIENT_ONLY;
}
return 0;
if (GetFlags() & GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED)
{
flags |= GA_FLAGS::ALLOW_WHILE_PAUSED;
}
return flags;
}
/**

View File

@@ -75,15 +75,6 @@ public:
{
}
uint16_t GetActionFlags() const override
{
uint16_t flags = GameAction::GetActionFlags();
if (GetFlags() & GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED)
flags |= GA_FLAGS::ALLOW_WHILE_PAUSED;
return flags;
}
void Serialise(DataSerialiser& stream) override
{
GameAction::Serialise(stream);

View File

@@ -43,11 +43,6 @@ public:
{
}
uint16_t GetActionFlags() const override
{
return GameAction::GetActionFlags();
}
void Serialise(DataSerialiser& stream) override
{
GameAction::Serialise(stream);

View File

@@ -31,11 +31,6 @@ public:
{
}
uint16_t GetActionFlags() const override
{
return GameAction::GetActionFlags();
}
void Serialise(DataSerialiser& stream) override
{
GameAction::Serialise(stream);

View File

@@ -28,7 +28,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 "5"
#define NETWORK_STREAM_VERSION "6"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
static rct_peep* _pickup_peep = nullptr;