]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/state.qc
Partial support for buffs in target_items entities
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / state.qc
index 1a2fb1e7bfb171bb0405c1f8a02f83f09bde43dd..a47188422ebea5d562e3e090445ee0b216cb0877 100644 (file)
@@ -17,11 +17,8 @@ void PlayerState_detach(entity this)
        PS(this) = NULL;
 
        if (ps.m_client != this) return;  // don't own state, spectator
-       ps.m_switchweapon = WEP_Null;
-       ps.m_weapon = WEP_Null;
-       ps.m_switchingweapon = WEP_Null;
        ps.ps_push(ps, this);
-       
+
        FOREACH_CLIENT(PS(it) == ps, { PS(it) = NULL; });
        delete(ps);