Remove EF_GONE flag from enemies when they are killed.

This commit is contained in:
Steve 2018-03-08 07:32:04 +00:00
parent 34df6121dd
commit 6b2139b6ce
2 changed files with 2 additions and 3 deletions

View File

@ -277,6 +277,7 @@ static void die(void)
u = (Unit*)self; u = (Unit*)self;
u->flags |= EF_BOUNCES | EF_ALWAYS_PROCESS; u->flags |= EF_BOUNCES | EF_ALWAYS_PROCESS;
u->flags &= ~(EF_HALT_AT_EDGE | EF_GONE);
u->action = die2; u->action = die2;
@ -292,8 +293,6 @@ static void die(void)
u->dx = (randF() - randF()) * 5; u->dx = (randF() - randF()) * 5;
u->flags &= ~EF_HALT_AT_EDGE;
switch (rand() % 3) switch (rand() % 3)
{ {
case 0: case 0:

View File

@ -128,7 +128,7 @@ static void die(void)
u->action = unitDie; u->action = unitDie;
u->thinkTime = 0; u->thinkTime = 0;
u->flags |= EF_ALWAYS_PROCESS; u->flags |= EF_ALWAYS_PROCESS;
u->flags &= ~(EF_WEIGHTLESS | EF_HALT_AT_EDGE); u->flags &= ~(EF_WEIGHTLESS | EF_HALT_AT_EDGE | EF_GONE);
u->dy = JUMP_POWER; u->dy = JUMP_POWER;