From 2b4883212b80a628b5fa85ee2885b0221184948b Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 22 Oct 2013 13:23:39 +0200 Subject: [PATCH] Don't set min ammo counts for weapons on the map; the weapons themselves yield ammo too (even in all weapon stay modes). --- qcsrc/server/item_ammo.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/item_ammo.qc b/qcsrc/server/item_ammo.qc index 74839114b..eebc3c96f 100644 --- a/qcsrc/server/item_ammo.qc +++ b/qcsrc/server/item_ammo.qc @@ -123,7 +123,7 @@ void item_ammo_pick() if (start_weapons & get_weaponinfo(i).weapons) for (i = 0; i < ITEM_AMMO_COUNT; ++i) if (get_weaponinfo(w.weapon).items & item_ammo_type(i)) - item_ammo_mincount[i] = 1; + item_ammo_mincount[i] = n_teams; for (w = weaponlist; w; w = w.chain) { float c = 0; @@ -143,7 +143,7 @@ void item_ammo_pick() if (get_weaponinfo(w.weapon).items & item_ammo_type(i)) { item_ammo_count[i] += item_ammo_modifier(i) * item_ammo_weaponmodifier(w.weapon) * c; - item_ammo_mincount[i] = n_teams; + // item_ammo_mincount[i] = n_teams; // Not needed, weapons serve as ammo pickups too. } } float n_count = 0; -- 2.39.2