From: Lyberta Date: Thu, 7 Sep 2017 15:45:59 +0000 (+0300) Subject: URS: Fixed weapon spawning. X-Git-Tag: xonotic-v0.8.5~2461^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=18fd999f31419fe7019587ebc1b83e43f635bb0e;p=xonotic%2Fxonotic-data.pk3dir.git URS: Fixed weapon spawning. --- diff --git a/qcsrc/server/weapons/spawning.qc b/qcsrc/server/weapons/spawning.qc index e4d8dd388..d5b78aa1c 100644 --- a/qcsrc/server/weapons/spawning.qc +++ b/qcsrc/server/weapons/spawning.qc @@ -102,7 +102,7 @@ void weapon_defaultspawnfunc(entity this, Weapon e) this.superweapons_finished = autocvar_g_balance_superweapons_time; // if we don't already have ammo, give us some ammo - if (!GetResourceAmount(this, wpn.ammo_type)) + if ((wpn.ammo_type != RESOURCE_NONE) && !GetResourceAmount(this, wpn.ammo_type)) { switch (wpn.ammo_type) {