Fix knuckle cracking animation broken in r3436

git-svn-id: https://svn.eduke32.com/eduke32@3440 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2013-01-27 17:06:41 +00:00
parent c0ebbbbb42
commit 9bd041cb9d

View file

@ -1922,7 +1922,7 @@ static int32_t P_DisplayKnuckles(int32_t gs,int32_t snum)
const DukePlayer_t *const ps = g_player[snum].ps;
if (ps->knuckle_incs == 0 || ps->knuckle_incs >= ARRAY_SIZE(knuckle_frames) || sprite[ps->i].extra <= 0)
if (ps->knuckle_incs == 0 || ps->knuckle_incs>>1 >= ARRAY_SIZE(knuckle_frames) || sprite[ps->i].extra <= 0)
return 0;
looking_arc = klabs(ps->look_ang)/9;