]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/client.qc
Merge branch 'martin-t/teamsay' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / client.qc
index fe0c04179ddcec573cb03e0fa7511ab039dc97c8..76faaab331d9e437de5792e0d5cf354147fd1ee6 100644 (file)
@@ -381,7 +381,7 @@ void PutObserverInServer(entity this)
                if(axh.owner == this && axh != NULL && !wasfreed(axh))
                        delete(axh);
        }
-       
+
        if (mutator_returnvalue)
        {
                // mutator prevents resetting teams+score
@@ -390,7 +390,9 @@ void PutObserverInServer(entity this)
        {
                SetPlayerTeam(this, -1, TEAM_CHANGE_SPECTATOR);
                this.frags = FRAGS_SPECTATOR;
-    }
+       }
+       if (CS(this).just_joined)
+               CS(this).just_joined = false;
 }
 
 int player_getspecies(entity this)
@@ -2713,9 +2715,6 @@ int Say(entity source, int teamsay, entity privatesay, string msgin, bool floodc
                teamsay = false;
        }
 
-       if (intermission_running)
-               teamsay = false;
-
        if (!source) {
                colorstr = "";
                teamsay = false;