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

@ -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)