From: Mircea Kitsune Date: Fri, 11 Feb 2011 22:55:13 +0000 (+0200) Subject: Fix a small issue in reload code X-Git-Tag: xonotic-v0.5.0~309^2~7^2~29 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a04990b717e1d6be6aa14385c9b8f53da083c625;p=xonotic%2Fxonotic-data.pk3dir.git Fix a small issue in reload code --- diff --git a/qcsrc/server/cl_weaponsystem.qc b/qcsrc/server/cl_weaponsystem.qc index 0e6867f72..616aee69d 100644 --- a/qcsrc/server/cl_weaponsystem.qc +++ b/qcsrc/server/cl_weaponsystem.qc @@ -1736,6 +1736,7 @@ void W_Reload(float sent_ammo_min, float sent_ammo_amount, float sent_time, stri weapon_thinkf(WFRAME_RELOAD, self.reload_time, W_ReloadedAndReady); - self.old_clip_load = self.clip_load; - self.clip_load = -1; + if(self.clip_load >= 0) + self.old_clip_load = self.clip_load; + self.clip_load = self.weapon_load[self.weapon] = -1; } \ No newline at end of file