CS: Manually set SPECTATOR team index.
This commit is contained in:
@@ -1761,8 +1761,14 @@ int MNF_SetPlayerTeamInfo(int player, int teamid, const char *teamname)
|
||||
|
||||
pPlayer->teamId = teamid;
|
||||
if (teamname != NULL)
|
||||
{
|
||||
pPlayer->team.assign(teamname);
|
||||
|
||||
// Make sure team is registered, otherwise
|
||||
// natives relying on team id will return wrong result.
|
||||
g_teamsIds.registerTeam(teamname, teamid);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user