ref: 1ea4031de8456683a0a93e2a7ece69f6f8c30858
parent: c1abe80682e6763a773b9d1e1f4a2669ff6a78ea
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Jan 7 00:34:05 EST 2020
More-accurate BossX.cpp variable-arrangement
--- a/src/BossX.cpp
+++ b/src/BossX.cpp
@@ -212,8 +212,6 @@
static void ActBossChar03_02(NPCHAR *npc)
{
- int direct;
-
RECT rect[4] = {
{0, 128, 72, 160},
{72, 128, 144, 160},
@@ -221,8 +219,8 @@
{72, 160, 144, 192},
};
- int x;
- int y;
+ int direct;
+ int x, y;
switch (npc->act_no)
{
@@ -360,9 +358,8 @@
static void ActBossChar03_04(NPCHAR *npc)
{
+ int xm, ym;
unsigned char deg;
- int ym;
- int xm;
RECT rect[8] = {
{0, 192, 16, 208},
@@ -436,8 +433,6 @@
static void ActBossChar03_face(NPCHAR *npc)
{
- static unsigned char flash;
-
RECT rect[3] = {
{216, 0, 320, 48},
{216, 48, 320, 96},
@@ -444,6 +439,8 @@
{216, 144, 320, 192},
};
+ static unsigned char flash;
+
switch (npc->act_no)
{
case 0:
@@ -484,7 +481,6 @@
void ActBossChar_MonstX(void)
{
int i;
-
NPCHAR *npc = gBoss;
switch (npc->act_no)