mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
SW: With the input tied to frame rate, disable aiming while the
player is dead, and also disable horizontal aiming while on a ladder.
This commit is contained in:
parent
820e9ef5f9
commit
d50410f06b
1 changed files with 3 additions and 2 deletions
|
@ -3280,11 +3280,12 @@ getinput(SW_PACKET *loc, SWBOOL tied)
|
|||
q16avel = fix16_floor(q16avel);
|
||||
q16horz = fix16_floor(q16horz);
|
||||
}
|
||||
else
|
||||
else if (!TEST(pp->Flags, PF_DEAD))
|
||||
{
|
||||
void DoPlayerTurn(PLAYERp pp, fix16_t *pq16ang, fix16_t q16avel);
|
||||
void DoPlayerHorizon(PLAYERp pp, fix16_t *pq16horiz, fix16_t q16horz);
|
||||
DoPlayerTurn(pp, &pp->camq16ang, q16avel);
|
||||
if (!TEST(pp->Flags, PF_CLIMBING))
|
||||
DoPlayerTurn(pp, &pp->camq16ang, q16avel);
|
||||
DoPlayerHorizon(pp, &pp->camq16horiz, q16horz);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue