From 6981a613dda2452a4dd9e41be7c25113078dc219 Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 12 Jun 2023 19:50:44 +0200 Subject: [PATCH] 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 --- qcsrc/client/main.qc | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.2