mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix IntersectCharacter
This makes hitting yourself when shooting through other tees work
This commit is contained in:
parent
aa79d810ff
commit
b1ca920cd4
|
@ -223,6 +223,9 @@ CCharacter *CGameWorld::IntersectCharacter(vec2 Pos0, vec2 Pos1, float Radius, v
|
|||
if(p == pNotThis)
|
||||
continue;
|
||||
|
||||
if(pThisOnly && p != pThisOnly)
|
||||
continue;
|
||||
|
||||
if(CollideWith != -1 && !p->CanCollide(CollideWith))
|
||||
continue;
|
||||
|
||||
|
|
|
@ -304,6 +304,9 @@ CCharacter *CGameWorld::IntersectCharacter(vec2 Pos0, vec2 Pos1, float Radius, v
|
|||
if(p == pNotThis)
|
||||
continue;
|
||||
|
||||
if(pThisOnly && p != pThisOnly)
|
||||
continue;
|
||||
|
||||
if(CollideWith != -1 && !p->CanCollide(CollideWith))
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in a new issue