summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorTed Newman <Tawling@users.noreply.github.com>2024-02-15 17:39:24 -0800
committerGitHub <noreply@github.com>2024-02-15 19:39:24 -0600
commite68b281b18f5cff7d3bac92d4de797043e207ff5 (patch)
tree212db88a76a899d46d7f0900d0ec1ef336449ed0 /soh/src/code
parenta7b8c1dbcac917440bfe7e59c736ea5e855c9959 (diff)
[Enhancement] Preserve minimap toggle state between areas (#3906)
* Add enhancement to preserve minimap toggle state between areas * add map toggle enhancement to presets
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_construct.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/soh/src/code/z_construct.c b/soh/src/code/z_construct.c
index b95902cc5..c8a340492 100644
--- a/soh/src/code/z_construct.c
+++ b/soh/src/code/z_construct.c
@@ -430,7 +430,9 @@ void Regs_InitDataImpl(void) {
WREG(28) = 0;
R_OW_MINIMAP_X = 238;
R_OW_MINIMAP_Y = 164;
- R_MINIMAP_DISABLED = CVarGetInteger("gMinimalUI", 0);
+ if (!CVarGetInteger("gEnhancements.RememberMapToggleState", 0)) {
+ R_MINIMAP_DISABLED = CVarGetInteger("gMinimalUI", 0);
+ }
WREG(32) = 122;
WREG(33) = 60;
WREG(35) = 0;