]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't show team join message if team is -1 (auto select)
authorMario <mario@smbclan.net>
Sun, 28 Feb 2016 22:07:39 +0000 (08:07 +1000)
committerMario <mario@smbclan.net>
Sun, 28 Feb 2016 22:07:39 +0000 (08:07 +1000)
qcsrc/server/cl_client.qc
qcsrc/server/command/cmd.qc

index 3f9fdd41bfdc615427f207152b2e56898db35e58..5328e959fbbeffca0eb39c22a5e802fb9d027cd7 100644 (file)
@@ -1827,7 +1827,7 @@ void LeaveSpectatorMode()
 
                        PutClientInServer();
 
-                       if(IS_PLAYER(self)) { Send_Notification(NOTIF_ALL, world, MSG_INFO, ((teamplay) ? APP_TEAM_ENT_4(this, INFO_JOIN_PLAY_TEAM_) : INFO_JOIN_PLAY), self.netname); }
+                       if(IS_PLAYER(self)) { Send_Notification(NOTIF_ALL, world, MSG_INFO, ((teamplay && this.team != -1) ? APP_TEAM_ENT_4(this, INFO_JOIN_PLAY_TEAM_) : INFO_JOIN_PLAY), self.netname); }
                }
                else
                        stuffcmd(self, "menu_showteamselect\n");
index 5c052e2d91e70fa45393b558bc5cc50fff772352..c897966aa4e9b717d05873de2217af836092352a 100644 (file)
@@ -180,7 +180,7 @@ void ClientCommand_join(float request)
                                                self.classname = STR_PLAYER;
                                                PlayerScore_Clear(self);
                                                Kill_Notification(NOTIF_ONE_ONLY, self, MSG_CENTER_CPID, CPID_PREVENT_JOIN);
-                                               Send_Notification(NOTIF_ALL, world, MSG_INFO, ((teamplay) ? APP_TEAM_ENT_4(this, INFO_JOIN_PLAY_TEAM_) : INFO_JOIN_PLAY), self.netname);
+                                               Send_Notification(NOTIF_ALL, world, MSG_INFO, ((teamplay && self.team != -1) ? APP_TEAM_ENT_4(this, INFO_JOIN_PLAY_TEAM_) : INFO_JOIN_PLAY), self.netname);
                                                PutClientInServer();
                                        }
                                        else