Restore ps_push
authorMario <mario@smbclan.net>
Tue, 3 Jan 2017 12:31:48 +0000 (22:31 +1000)
committerMario <mario@smbclan.net>
Tue, 3 Jan 2017 12:31:48 +0000 (22:31 +1000)
qcsrc/common/state.qc
qcsrc/common/state.qh

index a9bc3e5..a471884 100644 (file)
@@ -17,7 +17,8 @@ void PlayerState_detach(entity this)
        PS(this) = NULL;
 
        if (ps.m_client != this) return;  // don't own state, spectator
-       
+       ps.ps_push(ps, this);
+
        FOREACH_CLIENT(PS(it) == ps, { PS(it) = NULL; });
        delete(ps);
 
index 850e7ac..42fc450 100644 (file)
@@ -33,6 +33,10 @@ CLASS(ClientState, Object)
                CONSTRUCT(ClientState);
                this.m_client = client;
        }
+       METHOD(PlayerState, ps_push, void(PlayerState this, entity cl))
+       {
+               TC(PlayerState, this);
+       }
 ENDCLASS(ClientState)
 
 .ClientState _cs;