Set reappearing units to always process, so they don't vanish for good.

This commit is contained in:
Steve 2018-03-18 12:55:51 +00:00
parent 5828a660d3
commit 6cf315d3ef
1 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ static void reappear(void)
self->action = self->walk;
self->flags &= ~EF_GONE;
self->flags &= ~(EF_GONE | EF_ALWAYS_PROCESS);
addTeleportStars(self);
@ -192,7 +192,7 @@ static void applyDamage(int damage)
if (u->isMissionTarget && rand() % 100 < 10)
{
u->action = reappear;
u->flags |= EF_GONE;
u->flags |= (EF_GONE | EF_ALWAYS_PROCESS);
u->thinkTime = rrnd(FPS, FPS * 2);
addTeleportStars(self);
playBattleSound(SND_APPEAR, self->uniqueId % MAX_SND_CHANNELS, u->x, u->y);