From a334f7f5e07ccb785e32eaa7b722b709ca093f2a Mon Sep 17 00:00:00 2001 From: TheXaman <48356183+TheXaman@users.noreply.github.com> Date: Mon, 13 Dec 2021 18:58:13 +0100 Subject: [PATCH] changed all missed ones to `#if P_ENABLE_DEBUG == TRUE` @LOuroboros --- src/battle_anim_mons.c | 4 ++-- src/battle_bg.c | 2 +- src/battle_gfx_sfx_util.c | 2 +- src/pokemon.c | 2 +- src/pokemon_debug.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/battle_anim_mons.c b/src/battle_anim_mons.c index 86479aac5a..adc664c3a3 100644 --- a/src/battle_anim_mons.c +++ b/src/battle_anim_mons.c @@ -35,7 +35,7 @@ static void CreateBattlerTrace(struct Task *task, u8 taskId); EWRAM_DATA static union AffineAnimCmd *sAnimTaskAffineAnim = NULL; -#if P_ENABLE_DEBUG +#if P_ENABLE_DEBUG == TRUE const struct UCoords8 sBattlerCoords[][MAX_BATTLERS_COUNT] = #else static const struct UCoords8 sBattlerCoords[][MAX_BATTLERS_COUNT] = @@ -64,7 +64,7 @@ const struct MonCoords gCastformFrontSpriteCoords[NUM_CASTFORM_FORMS] = [CASTFORM_ICE] = { .size = MON_COORDS_SIZE(64, 48), .y_offset = 8 }, }; -#if P_ENABLE_DEBUG +#if P_ENABLE_DEBUG == TRUE const u8 sCastformElevations[NUM_CASTFORM_FORMS] = #else static const u8 sCastformElevations[NUM_CASTFORM_FORMS] = diff --git a/src/battle_bg.c b/src/battle_bg.c index 298a3565a8..9d9b26627d 100644 --- a/src/battle_bg.c +++ b/src/battle_bg.c @@ -600,7 +600,7 @@ const struct WindowTemplate * const gBattleWindowTemplates[] = [B_WIN_TYPE_ARENA] = gBattleArenaWindowTemplates, }; -#if P_ENABLE_DEBUG +#if P_ENABLE_DEBUG == TRUE const struct BattleBackground sBattleTerrainTable[] = #else static const struct BattleBackground sBattleTerrainTable[] = diff --git a/src/battle_gfx_sfx_util.c b/src/battle_gfx_sfx_util.c index 508e250c15..57e5d87630 100644 --- a/src/battle_gfx_sfx_util.c +++ b/src/battle_gfx_sfx_util.c @@ -77,7 +77,7 @@ static const struct CompressedSpriteSheet sSpriteSheets_HealthBar[MAX_BATTLERS_C {gBlankGfxCompressed, 0x0120, TAG_HEALTHBAR_OPPONENT2_TILE} }; -#if P_ENABLE_DEBUG +#if P_ENABLE_DEBUG == TRUE const struct SpritePalette sSpritePalettes_HealthBoxHealthBar[2] = #else static const struct SpritePalette sSpritePalettes_HealthBoxHealthBar[2] = diff --git a/src/pokemon.c b/src/pokemon.c index 59b918f073..3e497cf351 100644 --- a/src/pokemon.c +++ b/src/pokemon.c @@ -1856,7 +1856,7 @@ const s8 gNatureStatTable[NUM_NATURES][NUM_NATURE_STATS] = #include "data/pokemon/form_change_table_pointers.h" // SPECIES_NONE are ignored in the following two tables, so decrement before accessing these arrays to get the right result -#if P_ENABLE_DEBUG +#if P_ENABLE_DEBUG == TRUE const u8 sMonFrontAnimIdsTable[NUM_SPECIES - 1] = #else static const u8 sMonFrontAnimIdsTable[NUM_SPECIES - 1] = diff --git a/src/pokemon_debug.c b/src/pokemon_debug.c index fd442386b4..9f0135be19 100644 --- a/src/pokemon_debug.c +++ b/src/pokemon_debug.c @@ -38,7 +38,7 @@ #include "constants/items.h" -#if P_ENABLE_DEBUG +#if P_ENABLE_DEBUG == TRUE extern const struct BattleBackground sBattleTerrainTable[]; extern const struct CompressedSpriteSheet gSpriteSheet_EnemyShadow; extern const struct SpriteTemplate gSpriteTemplate_EnemyShadow;