shithub: cstory

Download patch

ref: cef901792ba2b7791c573d60cfd906ee4c13e5bb
parent: 74cd1b047358e3c946fa6ac382ef97d06312c39d
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Jan 7 16:53:21 EST 2020

More-accurate SelStage.cpp variable arrangement

--- a/src/SelStage.cpp
+++ b/src/SelStage.cpp
@@ -14,8 +14,8 @@
 
 PERMIT_STAGE gPermitStage[8];
 
-static int gSelectedStage;
-static int gStageSelectTitleY;
+int gSelectedStage;
+int gStageSelectTitleY;
 
 void ClearPermitStage(void)
 {
@@ -107,6 +107,9 @@
 {
 	static unsigned int flash;
 
+	int i;
+	RECT rcStage;
+
 	RECT rcView = {0, 0, WINDOW_WIDTH, WINDOW_HEIGHT};
 
 	RECT rcCur[2] = {
@@ -116,10 +119,8 @@
 
 	RECT rcTitle1 = {80, 64, 144, 72};
 
-	int i;
 	int stage_num;
 	int stage_x;
-	RECT rcStage;
 
 	if (gStageSelectTitleY > (WINDOW_HEIGHT / 2) - 74)
 		--gStageSelectTitleY;