From 873ef3fea8e7b942e48ad19695ed6934605c3437 Mon Sep 17 00:00:00 2001 From: Marrub Date: Thu, 25 Jun 2015 10:15:40 -0400 Subject: [PATCH] that works better --- src/p_pspr.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/p_pspr.cpp b/src/p_pspr.cpp index 4e8340c5d..abe7f7320 100644 --- a/src/p_pspr.cpp +++ b/src/p_pspr.cpp @@ -124,9 +124,18 @@ void P_SetPsprite (player_t *player, int position, FState *state, bool nofunctio if (sv_fastweapons >= 2 && position == ps_weapon) - psp->tics = state->ActionFunc == NULL ? 0 : !(state->GetTics() == 0); + { + if(state->ActionFunc == NULL) + { + psp->tics = 0; + } + else + { + psp->tics = (state->GetTics() != 0); + } + } else if (sv_fastweapons) - psp->tics = !(state->GetTics() == 0); // great for producing decals :) + psp->tics = (state->GetTics() != 0); // great for producing decals :) else psp->tics = state->GetTics(); // could be 0