Don't constantly fire lasers or mags at a disabled craft.
This commit is contained in:
parent
6dbbb7f403
commit
8d8ad35e17
|
@ -395,9 +395,14 @@ static int selectWeaponForTarget(Entity *e)
|
|||
}
|
||||
|
||||
if (e->flags & EF_NO_KILL)
|
||||
{
|
||||
if (!(e->flags & EF_DISABLED))
|
||||
{
|
||||
return selectWeapon(BT_LASER) || selectWeapon(BT_MAG);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (e->shield > 0)
|
||||
|
|
Loading…
Reference in New Issue