Skip to content

Commit

Permalink
CGameWorld: Consider all characters as 'local team' for infclass
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaffeine committed Jul 8, 2023
1 parent 8172d1a commit 03cceb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/client/prediction/gameworld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ void CGameWorld::CreateExplosion(vec2 Pos, int Owner, int Weapon, bool NoDamage,

bool CGameWorld::IsLocalTeam(int OwnerID)
{
return OwnerID < 0 || m_Teams.CanCollide(m_LocalClientID, OwnerID);
return OwnerID < 0 || m_Teams.m_IsInfclass || m_Teams.CanCollide(m_LocalClientID, OwnerID);
}

void CGameWorld::NetObjBegin(CTeamsCore Teams, int LocalClientID)
Expand Down

0 comments on commit 03cceb6

Please sign in to comment.