]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/t_items.qc
waeponarena {all,most}_available
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / t_items.qc
index 466b38311214c20d0aa66baefa1a7d35fcf93c98..9695c7829a71a6e4daa62ff0dfc7d71a5069aaa6 100644 (file)
@@ -1307,6 +1307,7 @@ void _StartItem(entity this, entity def, float defaultrespawntime, float default
                        this.is_item = true;
                }
 
+               LOG_INFOF("adding weapid 2: %d\n", weaponid);
                weaponsInMap |= WepSet_FromWeapon(Weapons_from(weaponid));
 
                if (   def.instanceOfPowerup
@@ -1858,7 +1859,7 @@ float GiveItems(entity e, float beginarg, float endarg)
        POSTGIVE_RES_ROT(e, RES_HEALTH, 1, pauserothealth_finished, autocvar_g_balance_pause_health_rot, pauseregen_finished, autocvar_g_balance_pause_health_regen, SND_MEGAHEALTH, SND_Null);
 
        if(e.superweapons_finished <= 0)
-               if(!g_weaponarena && STAT(WEAPONS, e) & WEPSET_SUPERWEAPONS)
+               if(!g_weaponarena && (STAT(WEAPONS, e) & WEPSET_SUPERWEAPONS))
                        e.superweapons_finished = autocvar_g_balance_superweapons_time;
 
        if(e.strength_finished <= 0)