From 266fa05e15be8f28f3a32ee8b59565fa57a05639 Mon Sep 17 00:00:00 2001 From: Monster Iestyn Date: Thu, 2 May 2019 21:34:00 +0100 Subject: [PATCH] fix a slipup in A_DoNPCPain I just noticed I made, whoops --- src/p_enemy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_enemy.c b/src/p_enemy.c index 118367da4..283a83559 100644 --- a/src/p_enemy.c +++ b/src/p_enemy.c @@ -11896,7 +11896,7 @@ void A_DoNPCPain(mobj_t *actor) if (locvar1) { - if (actor->info->spawnhealth) + if (!actor->info->spawnhealth) return; // there's something very wrong here if you're using this action on something with no starting health locvar1 += ((FRACUNIT - locvar1)/actor->info->spawnhealth)*actor->health; hspeed = FixedMul(hspeed, locvar1);