From de7ea5a251b1c4207bd51c44dfc2a6d7f3074e45 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Tue, 7 Jan 2020 05:20:36 +0000 Subject: [PATCH] More-accurate BossAlmo2.cpp variable arrangement --- src/BossAlmo2.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/BossAlmo2.cpp b/src/BossAlmo2.cpp index d79f93fb..266b5540 100644 --- a/src/BossAlmo2.cpp +++ b/src/BossAlmo2.cpp @@ -178,14 +178,14 @@ static void ActBossCharA_Face(NPCHAR *npc) static void ActBossCharA_Mini(NPCHAR *npc) { - int deg; - RECT rect[3] = { {256, 0, 320, 40}, {256, 40, 320, 80}, {256, 80, 320, 120}, }; + int deg; + if (npc->cond == 0) return; @@ -284,16 +284,14 @@ static void ActBossCharA_Hit(NPCHAR *npc) void ActBossChar_Undead(void) { - int i; - int x; - int y; - - static int life; - static unsigned char flash; - NPCHAR *npc = gBoss; + static unsigned char flash; BOOL bShock = FALSE; + int x, y; + int i; + + static int life; switch (npc->act_no) {