Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix debug banner #100

Merged
merged 1 commit into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/battle/btl_states_actions.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "battle/battle.h"
#include "model.h"
#include "game_modes.h"
#include "dx/debug_menu.h"

#if VERSION_JP
extern Addr btl_states_menus_ROM_START;
Expand Down
4 changes: 2 additions & 2 deletions src/dx/debug_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1919,7 +1919,7 @@ void dx_debug_update_banner() {
char fmtBuf[128];
s32 effect;

if (gGameStatus.context == CONTEXT_BATTLE) {
if (gGameStatus.context == CONTEXT_WORLD) {
sprintf(fmtBuf, "Map: %7s (%X)", LastMapName, LastMapEntry);
dx_debug_draw_ascii(fmtBuf, DefaultColor, 220, BottomRowY);

Expand All @@ -1939,7 +1939,7 @@ void dx_debug_update_banner() {
if (dx_debug_is_cheat_enabled(DEBUG_CHEAT_GOD_MODE)) {
dx_debug_draw_ascii("(GOD MODE)", MSG_PAL_YELLOW, 151, BottomRowY);
}
} else {
} else if (gGameStatus.context == CONTEXT_BATTLE) {
s32 areaID = (LastBattleID >> 24) & 0xFF;
s32 battleID = (LastBattleID >> 16) & 0xFF;
s32 stageID = LastBattleID & 0xFFFF;
Expand Down
Loading