From f1e6698d14b897bf0ed6e3cef9f355853fb2473f Mon Sep 17 00:00:00 2001 From: Henny022p Date: Sat, 23 May 2026 05:05:51 +0200 Subject: [PATCH] rename global variable used to track the ezlo hint at save load in the USA version --- include/room.h | 2 +- src/game.c | 2 +- src/gameUtils.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/room.h b/include/room.h index 1802a934..c391bea5 100644 --- a/include/room.h +++ b/include/room.h @@ -158,7 +158,7 @@ typedef struct { /* 0x2e */ u8 location; /* 0x2f */ u8 field2f; /* 0x30 */ u8 field30; - /* 0x31 */ u8 field31; + /* 0x31 */ u8 ezlo_startup_hint; /* 0x32 */ u8 field32; /* 0x33 */ u8 field33; #if defined(JP) || defined(EU) diff --git a/src/game.c b/src/game.c index 7a7fc11d..b92c88b9 100644 --- a/src/game.c +++ b/src/game.c @@ -217,7 +217,7 @@ static void GameMain_ChangeRoom(void) { sub_0801855C(); } #elif defined(DEMO_JP) - if (gRoomTransition.field31) + if (gRoomTransition.ezlo_startup_hint) CheckAreaDiscovery(); if (gArea.unk28.textBaseIndex != 0xff) { sub_0801855C(); diff --git a/src/gameUtils.c b/src/gameUtils.c index 92a9db0b..f83ba232 100644 --- a/src/gameUtils.c +++ b/src/gameUtils.c @@ -463,9 +463,9 @@ void DisplayEzloMessage(void) { void CreateMiscManager(void) { Entity* e = NULL; - if (gRoomTransition.field31) + if (gRoomTransition.ezlo_startup_hint) return; - gRoomTransition.field31 = 1; + gRoomTransition.ezlo_startup_hint = TRUE; #ifndef DEMO_JP gRoomTransition.location = gArea.locationIndex; #endif