Log the team change too.
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 15 Sep 2010 13:35:51 +0000 (16:35 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 15 Sep 2010 13:35:51 +0000 (16:35 +0300)
qcsrc/server/teamplay.qc

index a37acb8..2a08ec5 100644 (file)
@@ -887,15 +887,19 @@ float JoinBestTeam(entity pl, float only_return_best, float forcebestteam)
                {
                        case 1:
                                SetPlayerColors(pl, COLOR_TEAM1 - 1);
+                               LogTeamchange(pl.playerid, pl.team, 2);
                                return COLOR_TEAM1;
                        case 2:
                                SetPlayerColors(pl, COLOR_TEAM2 - 1);
+                               LogTeamchange(pl.playerid, pl.team, 2);
                                return COLOR_TEAM2;
                        case 3:
                                SetPlayerColors(pl, COLOR_TEAM3 - 1);
+                               LogTeamchange(pl.playerid, pl.team, 2);
                                return COLOR_TEAM3;
                        case 4:
                                SetPlayerColors(pl, COLOR_TEAM4 - 1);
+                               LogTeamchange(pl.playerid, pl.team, 2);
                                return COLOR_TEAM4;
                        default:
                                break;