mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 20:40:47 +00:00
- Blood/Duke/RR/SW: Drop resetinputhelpers()
.
This commit is contained in:
parent
894feb1c80
commit
c08851e4c0
6 changed files with 8 additions and 41 deletions
|
@ -1316,18 +1316,6 @@ void UpdatePlayerSpriteAngle(PLAYER *pPlayer)
|
|||
pPlayer->angold = pSprite->ang = pPlayer->angle.ang.asbuild();
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// Unsynchronised input helpers.
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
static void resetinputhelpers(PLAYER* pPlayer)
|
||||
{
|
||||
pPlayer->horizon.resetadjustment();
|
||||
pPlayer->angle.resetadjustment();
|
||||
}
|
||||
|
||||
void ProcessInput(PLAYER *pPlayer)
|
||||
{
|
||||
enum
|
||||
|
@ -1338,7 +1326,8 @@ void ProcessInput(PLAYER *pPlayer)
|
|||
Item_JumpBoots = 3
|
||||
};
|
||||
|
||||
resetinputhelpers(pPlayer);
|
||||
pPlayer->horizon.resetadjustment();
|
||||
pPlayer->angle.resetadjustment();
|
||||
|
||||
spritetype *pSprite = pPlayer->pSprite;
|
||||
XSPRITE *pXSprite = pPlayer->pXSprite;
|
||||
|
|
|
@ -242,7 +242,6 @@ int* animateptr(int i);
|
|||
|
||||
void backuppos(player_struct* p, bool noclipping = false);
|
||||
void backupweapon(player_struct* p);
|
||||
void resetinputhelpers(player_struct* p);
|
||||
void checkhardlanding(player_struct* p);
|
||||
void playerweaponsway(player_struct* p, spritetype* s);
|
||||
|
||||
|
|
|
@ -844,18 +844,6 @@ void backupweapon(player_struct* p)
|
|||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
void resetinputhelpers(player_struct* p)
|
||||
{
|
||||
p->horizon.resetadjustment();
|
||||
p->angle.resetadjustment();
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
void checkhardlanding(player_struct* p)
|
||||
{
|
||||
if (p->hard_landing > 0)
|
||||
|
|
|
@ -2668,7 +2668,8 @@ void processinput_d(int snum)
|
|||
pi = p->i;
|
||||
s = &sprite[pi];
|
||||
|
||||
resetinputhelpers(p);
|
||||
p->horizon.resetadjustment();
|
||||
p->angle.resetadjustment();
|
||||
|
||||
actions = PlayerInputBits(snum, SB_ALL);
|
||||
|
||||
|
|
|
@ -3455,7 +3455,8 @@ void processinput_r(int snum)
|
|||
pi = p->i;
|
||||
s = &sprite[pi];
|
||||
|
||||
resetinputhelpers(p);
|
||||
p->horizon.resetadjustment();
|
||||
p->angle.resetadjustment();
|
||||
|
||||
actions = PlayerInputBits(snum, SB_ALL);
|
||||
|
||||
|
|
|
@ -1065,18 +1065,6 @@ STATEp sg_PlayerNinjaFly[] =
|
|||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// Unsynchronised input helper.
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
static void resetinputhelpers(PLAYERp pp)
|
||||
{
|
||||
pp->angle.resetadjustment();
|
||||
pp->horizon.resetadjustment();
|
||||
}
|
||||
|
||||
void
|
||||
DoPlayerSpriteThrow(PLAYERp pp)
|
||||
{
|
||||
|
@ -7297,7 +7285,8 @@ domovethings(void)
|
|||
|
||||
// Reset flags used while tying input to framerate
|
||||
RESET(pp->Flags2, PF2_INPUT_CAN_AIM|PF2_INPUT_CAN_TURN_GENERAL|PF2_INPUT_CAN_TURN_VEHICLE|PF2_INPUT_CAN_TURN_TURRET);
|
||||
resetinputhelpers(pp);
|
||||
pp->horizon.resetadjustment();
|
||||
pp->angle.resetadjustment();
|
||||
|
||||
// disable synchronised input if set by game.
|
||||
if (gamesetinput)
|
||||
|
|
Loading…
Reference in a new issue