From 72156dd4c10e8142a2eab320280f3624782b64f9 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Tue, 19 Mar 2013 06:22:52 +0000 Subject: [PATCH] Prevent the middle chaingun muzzleflash from animating its position when the player is frozen. The unmodified behavior is completely wrong and I don't see how any mod could ever use it. git-svn-id: https://svn.eduke32.com/eduke32@3578 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/player.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/source/player.c b/polymer/eduke32/source/player.c index 082386129..827778e4d 100644 --- a/polymer/eduke32/source/player.c +++ b/polymer/eduke32/source/player.c @@ -2372,7 +2372,8 @@ void P_DisplayWeapon(int32_t snum) if (*kb < PWEAPON(0, CHAINGUN_WEAPON, TotalTime)-4) { - i = rand()&7; + i = 0; + if (sprite[p->i].pal != 1) i = rand()&7; G_DrawWeaponTile(i+weapon_xoffset-4+162-(p->look_ang>>1),i+looking_arc-((*kb)>>1)+208-gun_pos, CHAINGUN+5+((*kb-2)/5),gs,o,pal,0); G_DrawWeaponTile(weapon_xoffset+178-(p->look_ang>>1),looking_arc+233-gun_pos,