From 5a77aace2f43f87b622983a3747a100f6af34f96 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 26 Aug 2020 16:55:32 +0200 Subject: [PATCH] - strip the structure for local input off the fields not needed here. Now it's basically the same as Dukes. --- source/exhumed/src/exhumed.cpp | 2 +- source/exhumed/src/ps_input.h | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/source/exhumed/src/exhumed.cpp b/source/exhumed/src/exhumed.cpp index 8436e3f26..f49f182a6 100644 --- a/source/exhumed/src/exhumed.cpp +++ b/source/exhumed/src/exhumed.cpp @@ -64,7 +64,7 @@ int htimer = 0; int EndLevel = false; -PlayerInput localInput; +LocalInput localInput; //////// diff --git a/source/exhumed/src/ps_input.h b/source/exhumed/src/ps_input.h index 4240d5084..011ff7847 100644 --- a/source/exhumed/src/ps_input.h +++ b/source/exhumed/src/ps_input.h @@ -38,7 +38,7 @@ enum { }; // 32 bytes -struct PlayerInput // TODO consider adjusting this for demo compatibility +struct PlayerInput { int xVel; int yVel; @@ -49,6 +49,15 @@ struct PlayerInput // TODO consider adjusting this for demo compatibility int8_t nItem; }; +struct LocalInput // TODO consider adjusting this for demo compatibility +{ + int xVel; + int yVel; + fix16_t nAngle; + uint16_t buttons; + fix16_t horizon; +}; + void InitInput(); void UpdateInputs(); @@ -58,7 +67,7 @@ void ClearSpaceBar(short nPlayer); int GetLocalInput(); extern PlayerInput sPlayerInput[]; -extern PlayerInput localInput; +extern LocalInput localInput; extern int nNetMoves; extern int lLocalCodes;