mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix super bug
This commit is contained in:
parent
f0d79b8388
commit
11dc90206b
|
@ -576,7 +576,7 @@ void CCharacterCore::Quantize()
|
||||||
bool CCharacterCore::IsRightTeam(int MapIndex)
|
bool CCharacterCore::IsRightTeam(int MapIndex)
|
||||||
{
|
{
|
||||||
if(Collision()->m_pSwitchers)
|
if(Collision()->m_pSwitchers)
|
||||||
if(m_pTeams->Team(m_Id) != m_pTeams->m_IsDDRace16 ? VANILLA_TEAM_SUPER : TEAM_SUPER)
|
if(m_pTeams->Team(m_Id) != (m_pTeams->m_IsDDRace16 ? VANILLA_TEAM_SUPER : TEAM_SUPER))
|
||||||
return Collision()->m_pSwitchers[Collision()->GetDTileNumber(MapIndex)].m_Status[m_pTeams->Team(m_Id)];
|
return Collision()->m_pSwitchers[Collision()->GetDTileNumber(MapIndex)].m_Status[m_pTeams->Team(m_Id)];
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ void CTeamsCore::Team(int ClientID, int Team)
|
||||||
|
|
||||||
bool CTeamsCore::CanCollide(int ClientID1, int ClientID2)
|
bool CTeamsCore::CanCollide(int ClientID1, int ClientID2)
|
||||||
{
|
{
|
||||||
if (m_Team[ClientID1] == m_IsDDRace16 ? VANILLA_TEAM_SUPER : TEAM_SUPER || m_Team[ClientID2] == m_IsDDRace16 ? VANILLA_TEAM_SUPER : TEAM_SUPER
|
if (m_Team[ClientID1] == (m_IsDDRace16 ? VANILLA_TEAM_SUPER : TEAM_SUPER) || m_Team[ClientID2] == (m_IsDDRace16 ? VANILLA_TEAM_SUPER : TEAM_SUPER)
|
||||||
|| ClientID1 == ClientID2)
|
|| ClientID1 == ClientID2)
|
||||||
return true;
|
return true;
|
||||||
if (m_IsSolo[ClientID1] || m_IsSolo[ClientID2])
|
if (m_IsSolo[ClientID1] || m_IsSolo[ClientID2])
|
||||||
|
|
Loading…
Reference in a new issue