From 9c56888ffd17a687953a2a3c79b5feab1843fb30 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sat, 9 Nov 2019 15:40:15 +0000 Subject: [PATCH] Deobfuscare more values --- src/NpcAct160.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NpcAct160.cpp b/src/NpcAct160.cpp index 636f50f2..4efd9156 100644 --- a/src/NpcAct160.cpp +++ b/src/NpcAct160.cpp @@ -426,10 +426,10 @@ void ActNpc165(NPCHAR *npc) { case 0: npc->act_no = 1; - npc->y += 0x1400; + npc->y += 10 * 0x200; // Fallthrough case 1: - if (npc->direct == 2 && gMC.x > npc->x - 0x4000 && gMC.x < npc->x + 0x4000 && gMC.y > npc->y - 0x2000 && gMC.y < npc->y + 0x2000) + if (npc->direct == 2 && gMC.x > npc->x - (0x20 * 0x200) && gMC.x < npc->x + (0x20 * 0x200) && gMC.y > npc->y - (0x10 * 0x200) && gMC.y < npc->y + (0x10 * 0x200)) npc->ani_no = 1; else npc->ani_no = 0;