From: Martin Taibr Date: Mon, 15 Jul 2019 19:54:03 +0000 (+0200) Subject: remove redundant call to wr_init X-Git-Tag: xonotic-v0.8.5~1450^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a57c80c897b8b0275746cc4f963276a9b12ff689;p=xonotic%2Fxonotic-data.pk3dir.git remove redundant call to wr_init --- diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index 9c1596f5d..d11bd8c04 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -719,14 +719,6 @@ void readplayerstartcvars() warmup_start_ammo_fuel = max(warmup_start_ammo_fuel, cvar("g_balance_fuel_rotstable")); } - WepSet precache_weapons = start_weapons; - if (g_warmup_allguns != 1) - precache_weapons |= warmup_start_weapons; - FOREACH(Weapons, it != WEP_Null, { - if(precache_weapons & (it.m_wepset)) - it.wr_init(it); - }); - start_ammo_shells = max(0, start_ammo_shells); start_ammo_nails = max(0, start_ammo_nails); start_ammo_rockets = max(0, start_ammo_rockets);