From f77b1007be6febf9b65a7f0f1210a9996e091a8e Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Mon, 13 Mar 2023 20:12:31 +1100 Subject: [PATCH] - Exhumed: Remove unused `PlayerInput::buttons` --- source/games/exhumed/src/exhumed.cpp | 5 ----- source/games/exhumed/src/input.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/source/games/exhumed/src/exhumed.cpp b/source/games/exhumed/src/exhumed.cpp index 3353cfb68..5c698221b 100644 --- a/source/games/exhumed/src/exhumed.cpp +++ b/source/games/exhumed/src/exhumed.cpp @@ -146,8 +146,6 @@ int nEnergyTowers = 0; int nCfgNetPlayers = 0; -int lLocalCodes = 0; - bool bCoordinates = false; int nNetTime = -1; @@ -481,14 +479,11 @@ void GameInterface::Ticker() sPlayerInput[nLocalPlayer].actions = localInput.actions; if (oldactions & SB_CENTERVIEW) sPlayerInput[nLocalPlayer].actions |= SB_CENTERVIEW; - sPlayerInput[nLocalPlayer].buttons = lLocalCodes; sPlayerInput[nLocalPlayer].nAngle = localInput.avel; sPlayerInput[nLocalPlayer].pan = localInput.horz; PlayerList[nLocalPlayer].pTarget = Ra[nLocalPlayer].pTarget = bestTarget; - lLocalCodes = 0; - PlayClock += 4; if (PlayClock == 8) gameaction = ga_autosave; // let the game run for 1 frame before saving. GameMove(); diff --git a/source/games/exhumed/src/input.h b/source/games/exhumed/src/input.h index 5a3d11d50..1954398db 100644 --- a/source/games/exhumed/src/input.h +++ b/source/games/exhumed/src/input.h @@ -33,7 +33,6 @@ enum { struct PlayerInput { DVector2 vel; - uint16_t buttons; float nAngle; float pan; int8_t nItem; @@ -57,7 +56,6 @@ int GetLocalInput(); extern PlayerInput sPlayerInput[]; extern InputPacket localInput; -extern int lLocalCodes; END_PS_NS