Remove EF_GONE flag from enemies when they are killed.
This commit is contained in:
parent
34df6121dd
commit
6b2139b6ce
|
@ -277,6 +277,7 @@ static void die(void)
|
|||
u = (Unit*)self;
|
||||
|
||||
u->flags |= EF_BOUNCES | EF_ALWAYS_PROCESS;
|
||||
u->flags &= ~(EF_HALT_AT_EDGE | EF_GONE);
|
||||
|
||||
u->action = die2;
|
||||
|
||||
|
@ -292,8 +293,6 @@ static void die(void)
|
|||
|
||||
u->dx = (randF() - randF()) * 5;
|
||||
|
||||
u->flags &= ~EF_HALT_AT_EDGE;
|
||||
|
||||
switch (rand() % 3)
|
||||
{
|
||||
case 0:
|
||||
|
|
|
@ -128,7 +128,7 @@ static void die(void)
|
|||
u->action = unitDie;
|
||||
u->thinkTime = 0;
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue