shithub: cstory

Download patch

ref: de7ea5a251b1c4207bd51c44dfc2a6d7f3074e45
parent: a0813edd2bb26201ffa00942680d77ce910bc057
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Jan 7 00:20:36 EST 2020

More-accurate BossAlmo2.cpp variable arrangement

--- a/src/BossAlmo2.cpp
+++ b/src/BossAlmo2.cpp
@@ -178,8 +178,6 @@
 
 static void ActBossCharA_Mini(NPCHAR *npc)
 {
-	int deg;
-
 	RECT rect[3] = {
 		{256, 0, 320, 40},
 		{256, 40, 320, 80},
@@ -186,6 +184,8 @@
 		{256, 80, 320, 120},
 	};
 
+	int deg;
+
 	if (npc->cond == 0)
 		return;
 
@@ -284,16 +284,14 @@
 
 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)
 	{