mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 03:28:19 +00:00
used Teams() instead of ((CGameControllerDDRace*)GameServer()->m_pController)->m_Teams
This commit is contained in:
parent
3d07ffdbdd
commit
b0420e66ee
|
@ -954,7 +954,7 @@ bool CCharacter::SameTeam(int ClientID)
|
||||||
|
|
||||||
int CCharacter::Team()
|
int CCharacter::Team()
|
||||||
{
|
{
|
||||||
return ((CGameControllerDDRace*)GameServer()->m_pController)->m_Teams.m_Core.Team(m_pPlayer->GetCID());
|
return Teams()->m_Core.Team(m_pPlayer->GetCID());
|
||||||
}
|
}
|
||||||
|
|
||||||
CGameTeams* CCharacter::Teams()
|
CGameTeams* CCharacter::Teams()
|
||||||
|
|
Loading…
Reference in a new issue