- Exhumed: Remove unused PlayerInput::buttons

This commit is contained in:
Mitchell Richters 2023-03-13 20:12:31 +11:00
parent c73ee5f848
commit f77b1007be
2 changed files with 0 additions and 7 deletions

View file

@ -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();

View file

@ -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