Set Bob to gone when killed, to avoid crash.
This commit is contained in:
parent
bf1e8f64f6
commit
f1c3b3e680
|
@ -363,7 +363,7 @@ static void doDying(void)
|
||||||
|
|
||||||
if (world.bob->health <= -(FPS * 2))
|
if (world.bob->health <= -(FPS * 2))
|
||||||
{
|
{
|
||||||
world.bob->alive = ALIVE_DEAD;
|
world.bob->flags |= EF_GONE;
|
||||||
|
|
||||||
throwFleshChunks(world.bob->x + world.bob->w / 2, world.bob->y + world.bob->h / 2, rrnd(3, 6));
|
throwFleshChunks(world.bob->x + world.bob->w / 2, world.bob->y + world.bob->h / 2, rrnd(3, 6));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue