]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 a9bc3e5e3cf8aa379ead84d3cc37163b70e46df1..a47188422ebea5d562e3e090445ee0b216cb0877 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 850e7ac9db6b67cd77650cd005ae4729a4148ce5..42fc450c4728f97f4e63ca6fe9b196b79f2c0a53 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;