Don't count enemy deaths more than once.
This commit is contained in:
parent
20acee4334
commit
883d576ca7
|
@ -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");
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue