From 3a9bcb0b6467f9e5400d8467a521e3f9271687eb Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 29 Aug 2020 02:17:28 +0200 Subject: [PATCH] - moved Exhumed's cheat bits back into the game module. They are no longer part of the packet interface. --- source/core/packet.h | 15 --------------- source/exhumed/src/ps_input.h | 7 +++++++ 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/source/core/packet.h b/source/core/packet.h index 533d52365..bcbdb3d20 100644 --- a/source/core/packet.h +++ b/source/core/packet.h @@ -103,7 +103,6 @@ union SYNCFLAGS unsigned int lookDown : 1; - unsigned int jab : 1; unsigned int lookLeft : 1; unsigned int lookRight : 1; }; @@ -129,20 +128,6 @@ union SYNCFLAGS #define SK_SPACE_BAR 31 -// Exhumed - -enum { - kButtonCheatGuns = 0x20, - kButtonCheatGodMode = 0x40, - kButtonCheatKeys = 0x80, - kButtonCheatItems = 0x100, -}; - - - - - - struct InputPacket { int16_t svel; diff --git a/source/exhumed/src/ps_input.h b/source/exhumed/src/ps_input.h index 23ae1e3fb..c0f2f4cbc 100644 --- a/source/exhumed/src/ps_input.h +++ b/source/exhumed/src/ps_input.h @@ -24,6 +24,13 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. BEGIN_PS_NS +enum { + kButtonCheatGuns = 0x20, + kButtonCheatGodMode = 0x40, + kButtonCheatKeys = 0x80, + kButtonCheatItems = 0x100, +}; + // 32 bytes struct PlayerInput {