]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
remove redundant call to wr_init
authorMartin Taibr <taibr.martin@gmail.com>
Mon, 15 Jul 2019 19:54:03 +0000 (21:54 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Mon, 15 Jul 2019 19:54:03 +0000 (21:54 +0200)
qcsrc/server/miscfunctions.qc

index 9c1596f5d033551167bb5f130a7989e43fb51a16..d11bd8c04194b967c993ede29a780a83218cc75d 100644 (file)
@@ -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);