Flag MIA as rescued immediately.

This commit is contained in:
Steve 2018-03-18 12:48:52 +00:00
parent e923f3286e
commit 5828a660d3
1 changed files with 2 additions and 2 deletions

View File

@ -117,6 +117,8 @@ static void touch(Entity *other)
m->flags |= EF_ALWAYS_PROCESS; m->flags |= EF_ALWAYS_PROCESS;
m->plane = PLANE_FOREGROUND; m->plane = PLANE_FOREGROUND;
playSound(SND_MIA, m->uniqueId % MAX_SND_CHANNELS); playSound(SND_MIA, m->uniqueId % MAX_SND_CHANNELS);
game.stats[STAT_MIAS_RESCUED]++;
updateObjective("MIA");
} }
} }
@ -145,8 +147,6 @@ static void teleport(void)
if (--m->teleportTimer <= 0) if (--m->teleportTimer <= 0)
{ {
addTeleportStars(self); addTeleportStars(self);
game.stats[STAT_MIAS_RESCUED]++;
updateObjective("MIA");
m->alive = ALIVE_DEAD; m->alive = ALIVE_DEAD;
} }