From 905db1285109eb466f850665ae4ce9cc291986c8 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Wed, 15 Sep 2010 16:38:43 +0300 Subject: [PATCH] Log the team change too. --- data/qcsrc/server/teamplay.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/qcsrc/server/teamplay.qc b/data/qcsrc/server/teamplay.qc index 297cdb1e..c829326c 100644 --- a/data/qcsrc/server/teamplay.qc +++ b/data/qcsrc/server/teamplay.qc @@ -835,15 +835,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; -- 2.39.2