From: Mircea Kitsune Date: Fri, 21 Jan 2011 17:25:00 +0000 (+0200) Subject: Comment that last change X-Git-Tag: xonotic-v0.5.0~309^2~7^2~151 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bac4c4c105a7b1daee7e19c35f1b03e4b9a2946f;p=xonotic%2Fxonotic-data.pk3dir.git Comment that last change --- diff --git a/qcsrc/server/cl_weaponsystem.qc b/qcsrc/server/cl_weaponsystem.qc index c1c87d63e..7f9707870 100644 --- a/qcsrc/server/cl_weaponsystem.qc +++ b/qcsrc/server/cl_weaponsystem.qc @@ -1646,6 +1646,7 @@ float W_ReloadCheck(float ammo_amount) sprint(self, strcat("You don't have any ammo to reload the ^2", W_Name(self.weapon), "\n")); self.reload_complain = time + 1; } + // is there's no more ammo to reload, only switch to another weapon if there's no more load in this one if(!self.ammo_counter) { self.ammo_counter = -1; // reload later