From d6bbb013f93adbb8c3767108c8aff765f4553ccd Mon Sep 17 00:00:00 2001 From: Clownacy Date: Wed, 8 Jul 2020 02:57:00 +0100 Subject: [PATCH] Deobfuscate some BOOLs --- src/NpcAct160.cpp | 4 ++-- src/NpcAct180.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NpcAct160.cpp b/src/NpcAct160.cpp index debee189..99d56aff 100644 --- a/src/NpcAct160.cpp +++ b/src/NpcAct160.cpp @@ -1334,7 +1334,7 @@ void ActNpc175(NPCHAR *npc) if (npc->act_no < 3 && npc->life < 90) { - LoseNpChar(npc, 0); + LoseNpChar(npc, FALSE); npc->act_no = 10; npc->ani_no = 1; npc->bits &= ~NPC_SHOOTABLE; @@ -1384,7 +1384,7 @@ void ActNpc176(NPCHAR *npc) if (npc->act_no < 3 && npc->life < 940) { - LoseNpChar(npc, 0); + LoseNpChar(npc, FALSE); npc->act_no = 10; npc->ani_no = 2; npc->bits &= ~NPC_SHOOTABLE; diff --git a/src/NpcAct180.cpp b/src/NpcAct180.cpp index cfb426ab..01b7a563 100644 --- a/src/NpcAct180.cpp +++ b/src/NpcAct180.cpp @@ -1311,7 +1311,7 @@ void ActNpc197(NPCHAR *npc) if (npc->x < 48 * 0x200) { npc->destroy_voice = 0; - LoseNpChar(npc, 1); + LoseNpChar(npc, TRUE); } break;