mirror of
https://github.com/DrBeef/Raze.git
synced 2025-03-02 23:32:01 +00:00
- Exhumed: Remove unused PlayerInput::buttons
This commit is contained in:
parent
c73ee5f848
commit
f77b1007be
2 changed files with 0 additions and 7 deletions
|
@ -146,8 +146,6 @@ int nEnergyTowers = 0;
|
||||||
|
|
||||||
int nCfgNetPlayers = 0;
|
int nCfgNetPlayers = 0;
|
||||||
|
|
||||||
int lLocalCodes = 0;
|
|
||||||
|
|
||||||
bool bCoordinates = false;
|
bool bCoordinates = false;
|
||||||
|
|
||||||
int nNetTime = -1;
|
int nNetTime = -1;
|
||||||
|
@ -481,14 +479,11 @@ void GameInterface::Ticker()
|
||||||
sPlayerInput[nLocalPlayer].actions = localInput.actions;
|
sPlayerInput[nLocalPlayer].actions = localInput.actions;
|
||||||
if (oldactions & SB_CENTERVIEW) sPlayerInput[nLocalPlayer].actions |= SB_CENTERVIEW;
|
if (oldactions & SB_CENTERVIEW) sPlayerInput[nLocalPlayer].actions |= SB_CENTERVIEW;
|
||||||
|
|
||||||
sPlayerInput[nLocalPlayer].buttons = lLocalCodes;
|
|
||||||
sPlayerInput[nLocalPlayer].nAngle = localInput.avel;
|
sPlayerInput[nLocalPlayer].nAngle = localInput.avel;
|
||||||
sPlayerInput[nLocalPlayer].pan = localInput.horz;
|
sPlayerInput[nLocalPlayer].pan = localInput.horz;
|
||||||
|
|
||||||
PlayerList[nLocalPlayer].pTarget = Ra[nLocalPlayer].pTarget = bestTarget;
|
PlayerList[nLocalPlayer].pTarget = Ra[nLocalPlayer].pTarget = bestTarget;
|
||||||
|
|
||||||
lLocalCodes = 0;
|
|
||||||
|
|
||||||
PlayClock += 4;
|
PlayClock += 4;
|
||||||
if (PlayClock == 8) gameaction = ga_autosave; // let the game run for 1 frame before saving.
|
if (PlayClock == 8) gameaction = ga_autosave; // let the game run for 1 frame before saving.
|
||||||
GameMove();
|
GameMove();
|
||||||
|
|
|
@ -33,7 +33,6 @@ enum {
|
||||||
struct PlayerInput
|
struct PlayerInput
|
||||||
{
|
{
|
||||||
DVector2 vel;
|
DVector2 vel;
|
||||||
uint16_t buttons;
|
|
||||||
float nAngle;
|
float nAngle;
|
||||||
float pan;
|
float pan;
|
||||||
int8_t nItem;
|
int8_t nItem;
|
||||||
|
@ -57,7 +56,6 @@ int GetLocalInput();
|
||||||
|
|
||||||
extern PlayerInput sPlayerInput[];
|
extern PlayerInput sPlayerInput[];
|
||||||
extern InputPacket localInput;
|
extern InputPacket localInput;
|
||||||
extern int lLocalCodes;
|
|
||||||
|
|
||||||
END_PS_NS
|
END_PS_NS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue