From 1c25da97c322d9fa1af4e37b52aeccbae34c12b6 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 24 Jan 2014 20:33:46 +0100 Subject: [PATCH] At last, I hope, fix right click causing to join the game when you're spectating (being out of the game) someone, instead of becoming observer --- qcsrc/server/mutators/gamemode_ca.qc | 1 + 1 file changed, 1 insertion(+) diff --git a/qcsrc/server/mutators/gamemode_ca.qc b/qcsrc/server/mutators/gamemode_ca.qc index 7aeba9282..ca60c2609 100644 --- a/qcsrc/server/mutators/gamemode_ca.qc +++ b/qcsrc/server/mutators/gamemode_ca.qc @@ -142,6 +142,7 @@ MUTATOR_HOOKFUNCTION(ca_PlayerSpawn) MUTATOR_HOOKFUNCTION(ca_PutClientInServer) { if(!allowed_to_spawn) + if(IS_PLAYER(self)) // this is true even when player is trying to join { self.classname = "observer"; if(self.jointime != time) //not when connecting -- 2.39.2