From 2b1d36db46ec59ab3934580be295db91870c5603 Mon Sep 17 00:00:00 2001 From: psf <77138753+pkmnsnfrn@users.noreply.github.com> Date: Wed, 29 Nov 2023 14:08:36 -0800 Subject: [PATCH] Fix issue where Sky Battles cause upcoming not to compile when debug menu is turned off (#3617) * Moved Sky Battle error message outside of debug.inc https://github.com/rh-hideout/pokeemerald-expansion/issues/3615\#issue-2015546179 * Update data/scripts/debug.inc Made changes from Jasper's review https://github.com/rh-hideout/pokeemerald-expansion/pull/3617/files/625f0077416c5fa919b4999fc4be9c715d031875 Co-authored-by: Bassoonian --------- Co-authored-by: Bassoonian --- data/scripts/debug.inc | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/data/scripts/debug.inc b/data/scripts/debug.inc index 573b60d457..4d14a2a2a6 100644 --- a/data/scripts/debug.inc +++ b/data/scripts/debug.inc @@ -95,19 +95,6 @@ Debug_BoxFilledMessage:: Debug_BoxFilledMessage_Text: .string "Storage boxes filled!$" -Debug_FlagsAndVarNotSetBattleConfigMessage:: - lockall - message Debug_FlagsAndVarNotSetBattleConfigMessage_Text - waitmessage - waitbuttonpress - releaseall - end - -Debug_FlagsAndVarNotSetBattleConfigMessage_Text: - .string "Feature unavailable! Please define a\n" - .string "usable flag and a usable var in:\l" - .string "'include/config/battle.h'!$" - Debug_EventScript_Script_1:: end @@ -229,3 +216,17 @@ Debug_ExpansionVersion: .string "pokeemerald-expansion {STR_VAR_1}$" .endif + +Debug_FlagsAndVarNotSetBattleConfigMessage:: + lockall + message Debug_FlagsAndVarNotSetBattleConfigMessage_Text + waitmessage + waitbuttonpress + releaseall + end + +Debug_FlagsAndVarNotSetBattleConfigMessage_Text: + .string "Feature unavailable! Please define a\n" + .string "usable flag and a usable var in:\l" + .string "'include/config/battle.h'!$" +