mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-22 12:31:32 +00:00
Missiles fired by player will not hit bots
This commit is contained in:
parent
fa690e0190
commit
07678311d1
1 changed files with 2 additions and 2 deletions
|
@ -1278,8 +1278,8 @@ 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 && thing->player->bot))
|
||||
return CHECKTHING_IGNORE;
|
||||
|
||||
if (thing->type != MT_PLAYER)
|
||||
|
|
Loading…
Reference in a new issue