From 72540732ef69af2b18b4b3d621a7a778f05a968d Mon Sep 17 00:00:00 2001 From: mzxrules Date: Wed, 20 Nov 2024 07:14:58 -0500 Subject: [PATCH] minor fix --- include/z64save.h | 2 +- src/code/z_sram.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/z64save.h b/include/z64save.h index ad68c670fe..33d127a08b 100644 --- a/include/z64save.h +++ b/include/z64save.h @@ -924,7 +924,7 @@ typedef enum LinkAge { #define MINIMAP_GET_INFTABLE_SHIFT(flag) ((flag) - INFTABLE_1A0) // 0x1D0-0x1DF -#define INFTABLE_1DX_INDEX 29 +#define INFTABLE_1DX_INDEX (0x1D0 >> 4) /* diff --git a/src/code/z_sram.c b/src/code/z_sram.c index ebde2e6625..1a133b07b2 100644 --- a/src/code/z_sram.c +++ b/src/code/z_sram.c @@ -329,10 +329,10 @@ void Sram_InitDebugSave(void) { GET_INFTABLE_MASK(INFTABLE_0C) | GET_INFTABLE_MASK(INFTABLE_0E); gSaveContext.save.info.eventChkInf[0] |= - GET_EVENTCHKINF_MASK(EVENTCHKINF_00_UNUSED) | GET_EVENTCHKINF_MASK(EVENTCHKINF_01_UNUSED) | GET_EVENTCHKINF_MASK(EVENTCHKINF_02) | - GET_EVENTCHKINF_MASK(EVENTCHKINF_03) | GET_EVENTCHKINF_MASK(EVENTCHKINF_04) | - GET_EVENTCHKINF_MASK(EVENTCHKINF_05) | GET_EVENTCHKINF_MASK(EVENTCHKINF_09) | - GET_EVENTCHKINF_MASK(EVENTCHKINF_0C); + GET_EVENTCHKINF_MASK(EVENTCHKINF_00_UNUSED) | GET_EVENTCHKINF_MASK(EVENTCHKINF_01_UNUSED) | + GET_EVENTCHKINF_MASK(EVENTCHKINF_02) | GET_EVENTCHKINF_MASK(EVENTCHKINF_03) | + GET_EVENTCHKINF_MASK(EVENTCHKINF_04) | GET_EVENTCHKINF_MASK(EVENTCHKINF_05) | + GET_EVENTCHKINF_MASK(EVENTCHKINF_09) | GET_EVENTCHKINF_MASK(EVENTCHKINF_0C); SET_EVENTCHKINF(EVENTCHKINF_80); SET_EVENTCHKINF(EVENTCHKINF_C4);