mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 12:01:05 +00:00
Merge branch 'issue1196' into 'next'
Missiles fired by player will not hit bots See merge request STJr/SRB2!2316
This commit is contained in:
commit
147b08feaa
1 changed files with 3 additions and 2 deletions
|
@ -1258,8 +1258,9 @@ static unsigned PIT_DoCheckThing(mobj_t *thing)
|
|||
|
||||
if (tmthing->type != MT_SHELL && tmthing->target && tmthing->target->type == thing->type)
|
||||
{
|
||||
// Don't hit same species as originator.
|
||||
if (thing == tmthing->target)
|
||||
// Don't hit yourself, and if a player, don't hit bots
|
||||
if (thing == tmthing->target
|
||||
|| (thing->player && tmthing->target->player && (thing->player->bot == BOT_2PAI || thing->player->bot == BOT_2PHUMAN)))
|
||||
return CHECKTHING_IGNORE;
|
||||
|
||||
if (thing->type != MT_PLAYER)
|
||||
|
|
Loading…
Reference in a new issue