From: Mircea Kitsune Date: Wed, 2 Mar 2011 23:36:45 +0000 (+0200) Subject: Fix an issue that appeared as of recent. Odd this didn't happen before. X-Git-Tag: xonotic-v0.5.0~309^2~7^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=27320ab724df5aff4bf1a832b0ddd153700f03e4;p=xonotic%2Fxonotic-data.pk3dir.git Fix an issue that appeared as of recent. Odd this didn't happen before. --- diff --git a/qcsrc/server/cl_weaponsystem.qc b/qcsrc/server/cl_weaponsystem.qc index fbbad1f86..3fab35fc9 100644 --- a/qcsrc/server/cl_weaponsystem.qc +++ b/qcsrc/server/cl_weaponsystem.qc @@ -1729,7 +1729,8 @@ void W_Reload(float sent_ammo_min, float sent_ammo_amount, float sent_time, stri weapon_thinkf(WFRAME_RELOAD, self.reload_time, W_ReloadedAndReady); - if(self.clip_load >= 0) - self.old_clip_load = self.clip_load; + if(self.clip_load < 0) + 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