From: terencehill Date: Mon, 12 Jun 2023 17:50:44 +0000 (+0200) Subject: Reset ready and eliminated status in the client as soon as a player disconnects,... X-Git-Tag: xonotic-v0.8.6~11 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6981a613dda2452a4dd9e41be7c25113078dc219;p=xonotic%2Fxonotic-data.pk3dir.git Reset ready and eliminated status in the client as soon as a player disconnects, fixing players occasionally appearing as eliminated (grayed out) as soon as they join the server because they wrongly inherited status of disconnected players --- diff --git a/qcsrc/client/main.qc b/qcsrc/client/main.qc index 68b21f46c..327a9edf8 100644 --- a/qcsrc/client/main.qc +++ b/qcsrc/client/main.qc @@ -550,6 +550,8 @@ void Ent_RemovePlayerScore(entity this) FOREACH(Scores, true, { this.owner.(scores(it)) = 0; // clear all scores }); + this.owner.ready = 0; + this.owner.eliminated = 0; this.owner.colormap = 0; // TODO add a hook to reset this Survival field this.owner.survival_status = 0;