]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reset ready and eliminated status in the client as soon as a player disconnects,...
authorterencehill <piuntn@gmail.com>
Mon, 12 Jun 2023 17:50:44 +0000 (19:50 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 12 Jun 2023 17:50:44 +0000 (19:50 +0200)
qcsrc/client/main.qc

index 68b21f46cf8990aeebe8a4d0174d350065b64a67..327a9edf877667958d07ba8a278051c00583181d 100644 (file)
@@ -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;