From: Mircea Kitsune Date: Fri, 21 Jan 2011 02:05:29 +0000 (+0200) Subject: Small forgotten fix X-Git-Tag: xonotic-v0.5.0~309^2~7^2~175 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b689df7dd8a98a11554404cdde4db8035998799a;p=xonotic%2Fxonotic-data.pk3dir.git Small forgotten fix --- diff --git a/balanceXonotic.cfg b/balanceXonotic.cfg index 24bdbe08b..414222b28 100644 --- a/balanceXonotic.cfg +++ b/balanceXonotic.cfg @@ -263,7 +263,7 @@ set g_balance_shotgun_secondary_damage 110 set g_balance_shotgun_secondary_force 150 set g_balance_shotgun_secondary_refire 1.1 set g_balance_shotgun_secondary_animtime 1 -set g_balance_shotgun_reload_ammo 5 +set g_balance_shotgun_reload_ammo 4 // }}} // {{{ uzi set g_balance_uzi_mode 1 // Activates varible spread for sustained & burst mode secondary diff --git a/qcsrc/server/w_shotgun.qc b/qcsrc/server/w_shotgun.qc index 13f2cfe67..af9a78f8d 100644 --- a/qcsrc/server/w_shotgun.qc +++ b/qcsrc/server/w_shotgun.qc @@ -20,7 +20,7 @@ void W_Shotgun_ReloadedAndReady() // now do the ammo maths self.ammo_counter = 0; // when we get here it's -1 - while(self.ammo_counter < autocvar_g_balance_shotgun_reload_ammo) + while(self.ammo_counter < autocvar_g_balance_shotgun_reload_ammo && self.ammo_shells) // make sure we don't add more than the amount of ammo we have { self.ammo_counter += 1; self.ammo_shells -= 1;