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