Don't count enemy deaths more than once.

This commit is contained in:
Steve 2018-03-13 08:25:57 +00:00
parent 20acee4334
commit 883d576ca7
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ static void die2(void)
addExplosion(u->x, u->y, 50, self);
}
if (u->health <= -50)
if (u->alive == ALIVE_DYING && u->health <= -50)
{
updateObjective(u->name);
updateObjective("ENEMY");

View File

@ -64,7 +64,7 @@ static void die2(void)
u->health = -FPS;
}
if (u->health <= -FPS && (u->isOnGround || u->environment != ENV_AIR))
if (u->alive == ALIVE_DYING && u->health <= -FPS && (u->isOnGround || u->environment != ENV_AIR))
{
dropCarriedItem();