From 9bd041cb9d33d0dad91b5c2a7f2db4ae505e1797 Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 27 Jan 2013 17:06:41 +0000 Subject: [PATCH] Fix knuckle cracking animation broken in r3436 git-svn-id: https://svn.eduke32.com/eduke32@3440 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/source/player.c b/polymer/eduke32/source/player.c index 82722bd20..7ea1f75d3 100644 --- a/polymer/eduke32/source/player.c +++ b/polymer/eduke32/source/player.c @@ -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;