From: Mario Date: Tue, 17 Mar 2020 23:12:55 +0000 (+1000) Subject: If the player state doesn't belong to the player, attach a new one when spawning... X-Git-Tag: xonotic-v0.8.5~1133^2~17 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=395c6af01df94be06f8be871034711b61f47141f;p=xonotic%2Fxonotic-data.pk3dir.git If the player state doesn't belong to the player, attach a new one when spawning, likely fixes some strange issues --- diff --git a/qcsrc/common/state.qc b/qcsrc/common/state.qc index 0f40acfc6..14b22e991 100644 --- a/qcsrc/common/state.qc +++ b/qcsrc/common/state.qc @@ -5,7 +5,7 @@ void Inventory_delete(entity this); void PlayerState_attach(entity this) { - if (PS(this)) + if (PS(this) && PS(this).m_client == this) return; this._ps = NEW(PlayerState, this);