From 1073276c6f1e1ec38f8389a0c5d6d7b257ae3e0f Mon Sep 17 00:00:00 2001 From: Steve Date: Sun, 4 Mar 2018 09:48:33 +0000 Subject: [PATCH] Fix for Bob taking slime / lava damage. --- src/entities/blobs/bob.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entities/blobs/bob.c b/src/entities/blobs/bob.c index 3f965a5..73a6137 100644 --- a/src/entities/blobs/bob.c +++ b/src/entities/blobs/bob.c @@ -177,7 +177,7 @@ static void doAlive(void) { world.bob->outTimer = FPS * 3; world.bob->stunTimer = 1; - if (world.bob->flags & EF_IMMUNE) + if (!(world.bob->flags & EF_IMMUNE)) { world.bob->health--; } @@ -189,7 +189,7 @@ static void doAlive(void) { world.bob->outTimer = FPS * 3; world.bob->stunTimer = 1; - if (world.bob->flags & EF_IMMUNE) + if (!(world.bob->flags & EF_IMMUNE)) { world.bob->health -= 2; }