]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/state.qc
Port hitplotfh to ClientState
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / state.qc
index cbf9eff72a8f68ad2f9e6da25d03539f1e2f4b32..7013cff1c15282956d1e8e008abead47910a2f29 100644 (file)
@@ -71,6 +71,7 @@ void ClientState_detach(entity this)
 {
     accuracy_free(this); // TODO: needs to be before CS() is deleted!
     PlayerScore_Detach(this); // what ^they^ said
+    W_HitPlotClose(this);
        delete(CS(this));
        this._cs = NULL;
 
@@ -78,7 +79,6 @@ void ClientState_detach(entity this)
 
     bot_clientdisconnect(this);
 
-    W_HitPlotClose(this);
     anticheat_report_to_eventlog(this);
     playerdemo_shutdown(this);
     entcs_detach(this);