Commit 87beaad8 authored by NY00123's avatar NY00123
Browse files

SW: With the input tied to frame rate, disable aiming while the

player is dead, and also disable horizontal aiming while on a ladder.
parent 618e73a8
......@@ -5273,11 +5273,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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment