From 7b58e116dd16fa65c30bdd8660bc49fa311eea49 Mon Sep 17 00:00:00 2001 From: div0 Date: Tue, 29 Jan 2008 18:46:07 +0000 Subject: [PATCH] fix weird weapon switch animation bug and weapon action lag by allowing anything to kill w_ready without additional delay git-svn-id: svn://svn.icculus.org/nexuiz/trunk@3304 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/cl_weaponsystem.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/qcsrc/server/cl_weaponsystem.qc b/data/qcsrc/server/cl_weaponsystem.qc index ea93a6312..fb8f6e2b1 100644 --- a/data/qcsrc/server/cl_weaponsystem.qc +++ b/data/qcsrc/server/cl_weaponsystem.qc @@ -470,7 +470,7 @@ void(float fr, float t, void() func) weapon_thinkf = } // VorteX: haste can be added here - if (self.weapon_nextthink < time - frametime) + if (self.weapon_think == w_ready || self.weapon_nextthink < time - frametime) self.weapon_nextthink = time; self.weapon_nextthink = self.weapon_nextthink + t; self.weapon_think = func; -- 2.39.2