]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Log the team change too.
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 15 Sep 2010 13:38:43 +0000 (16:38 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 15 Sep 2010 13:38:43 +0000 (16:38 +0300)
data/qcsrc/server/teamplay.qc

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