Don't constantly fire lasers or mags at a disabled craft.

This commit is contained in:
Steve 2016-07-31 09:58:06 +01:00
parent 6dbbb7f403
commit 8d8ad35e17
1 changed files with 6 additions and 1 deletions

View File

@ -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;
} }
} }