]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/state.qh
Weapons: store switchingweapon as direct weapon reference
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / state.qh
index 84bb94686bcb6097885f70e6191b738b724e6992..6c0b327afb843c636d5f99d21d8d93793e16d66e 100644 (file)
@@ -50,6 +50,7 @@ CLASS(PlayerState, Object)
        ATTRIB(PlayerState, m_weapon, Weapon, Weapons_from(-1))
        METHOD(PlayerState, ps_push, void(PlayerState this))
        {
+               STAT(SWITCHINGWEAPON, this.m_client) = this.m_switchingweapon.m_id;
                STAT(SWITCHWEAPON, this.m_client) = this.m_switchweapon.m_id;
        }
 ENDCLASS(PlayerState)
@@ -63,7 +64,6 @@ PlayerState PS(entity this) { assert(IS_CLIENT(this)); return this._ps; }
 
 void PlayerState_attach(entity this)
 {
-       LOG_INFO("Attached\n");
        this._ps = NEW(PlayerState, this);
 }