mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
DDrace GameController: Add GetPlayerTeam()
This commit is contained in:
parent
a14607f818
commit
acfb541db9
|
@ -100,3 +100,8 @@ void CGameControllerDDRace::InitTeleporter()
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
int CGameControllerDDRace::GetPlayerTeam(int ClientID) const
|
||||
{
|
||||
return m_Teams.m_Core.Team(ClientID);
|
||||
}
|
||||
|
|
|
@ -23,6 +23,8 @@ public:
|
|||
|
||||
void InitTeleporter();
|
||||
|
||||
int GetPlayerTeam(int ClientID) const;
|
||||
|
||||
CGameTeams m_Teams;
|
||||
|
||||
std::map<int, std::vector<vec2>> m_TeleOuts;
|
||||
|
|
Loading…
Reference in a new issue