DDrace GameController: Add GetPlayerTeam()

This commit is contained in:
Alexander Akulich 2021-01-13 01:53:10 +03:00
parent a14607f818
commit acfb541db9
2 changed files with 7 additions and 0 deletions

View file

@ -100,3 +100,8 @@ void CGameControllerDDRace::InitTeleporter()
}
}
}
int CGameControllerDDRace::GetPlayerTeam(int ClientID) const
{
return m_Teams.m_Core.Team(ClientID);
}

View file

@ -23,6 +23,8 @@ public:
void InitTeleporter();
int GetPlayerTeam(int ClientID) const;
CGameTeams m_Teams;
std::map<int, std::vector<vec2>> m_TeleOuts;