Misc. fixes.

This commit is contained in:
Steve 2015-12-10 10:16:44 +00:00
parent deafab786e
commit 4358d5b698
1 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ void doPlayer(void)
handleMouse();
if (!player->target || player->target->systemPower <= 0)
if (!player->target || player->target->health <= 0 || player->target->systemPower <= 0)
{
selectTarget();
}
@ -401,7 +401,7 @@ static void selectTarget(void)
}
}
if (player->target == NULL || !targets[0])
if (!player->target || !targets[0])
{
player->target = near;
}