From: terencehill Date: Fri, 24 Jan 2014 19:33:46 +0000 (+0100) Subject: At last, I hope, fix right click causing to join the game when you're spectating... X-Git-Tag: xonotic-v0.8.0~126^2~23 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1c25da97c322d9fa1af4e37b52aeccbae34c12b6;p=xonotic%2Fxonotic-data.pk3dir.git 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 --- 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