Fix for Bob taking slime / lava damage.

This commit is contained in:
Steve 2018-03-04 09:48:33 +00:00
parent 9a18d03a39
commit 1073276c6f
1 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ static void doAlive(void)
{ {
world.bob->outTimer = FPS * 3; world.bob->outTimer = FPS * 3;
world.bob->stunTimer = 1; world.bob->stunTimer = 1;
if (world.bob->flags & EF_IMMUNE) if (!(world.bob->flags & EF_IMMUNE))
{ {
world.bob->health--; world.bob->health--;
} }
@ -189,7 +189,7 @@ static void doAlive(void)
{ {
world.bob->outTimer = FPS * 3; world.bob->outTimer = FPS * 3;
world.bob->stunTimer = 1; world.bob->stunTimer = 1;
if (world.bob->flags & EF_IMMUNE) if (!(world.bob->flags & EF_IMMUNE))
{ {
world.bob->health -= 2; world.bob->health -= 2;
} }