]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
At last, I hope, fix right click causing to join the game when you're spectating...
authorterencehill <piuntn@gmail.com>
Fri, 24 Jan 2014 19:33:46 +0000 (20:33 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 24 Jan 2014 19:33:46 +0000 (20:33 +0100)
qcsrc/server/mutators/gamemode_ca.qc

index 7aeba9282f299917e307b00d9103afd7e8ae8539..ca60c26095b2670ec155d8f112b6d4be79dc0a78 100644 (file)
@@ -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