]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Dead CA player can stop playing (now both, while observing and spectating)
authoratheros <nexather@gmail.com>
Fri, 29 Jul 2011 21:43:13 +0000 (23:43 +0200)
committeratheros <nexather@gmail.com>
Fri, 29 Jul 2011 21:43:13 +0000 (23:43 +0200)
qcsrc/server/clientcommands.qc

index 8a24d63a4ee68b1159a2fafb4d4b620aeb351209..bace1dd7ea26f67dfa2e377c937eebca5e5aee1f 100644 (file)
@@ -239,7 +239,7 @@ void SV_ParseClientCommand(string s) {
                if(self.classname == "player" && autocvar_sv_spectate == 1) {
                        ClientKill_TeamChange(-2); // observe
                }
-               if(g_ca && self.classname == "spectator" && self.caplayer) {
+               if(g_ca && self.caplayer && (self.classname == "spectator" || self.classname == "observer")) {
                        // in CA, allow a dead player to move to spectatators (without that, caplayer!=0 will be moved back to the player list)
                        sprint(self, "WARNING: you will spectate in the next round.\n");
                        self.caplayer = 0;