mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-29 15:42:03 +00:00
re-introduce the thing == tmthing->target check, so it applies to non-players
This commit is contained in:
parent
5e29cd84a2
commit
dc625496d8
1 changed files with 2 additions and 1 deletions
|
@ -1279,7 +1279,8 @@ static unsigned PIT_DoCheckThing(mobj_t *thing)
|
||||||
if (tmthing->type != MT_SHELL && tmthing->target && tmthing->target->type == thing->type)
|
if (tmthing->type != MT_SHELL && tmthing->target && tmthing->target->type == thing->type)
|
||||||
{
|
{
|
||||||
// Don't hit yourself, and if a player, don't hit bots
|
// Don't hit yourself, and if a player, don't hit bots
|
||||||
if (thing->player && tmthing->target->player && !P_CanPlayerHurtPlayer(thing->player, tmthing, tmthing->target->player, 0))
|
if (thing == tmthing->target
|
||||||
|
|| (thing->player && tmthing->target->player && !P_CanPlayerHurtPlayer(thing->player, tmthing, tmthing->target->player, 0)))
|
||||||
return CHECKTHING_IGNORE;
|
return CHECKTHING_IGNORE;
|
||||||
|
|
||||||
if (thing->type != MT_PLAYER)
|
if (thing->type != MT_PLAYER)
|
||||||
|
|
Loading…
Reference in a new issue