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;