[Enhancement] Preserve minimap toggle state between areas (#3906)

* Add enhancement to preserve minimap toggle state between areas

* add map toggle enhancement to presets
This commit is contained in:
Ted Newman
2024-02-15 17:39:24 -08:00
committed by GitHub
parent a7b8c1dbca
commit e68b281b18
3 changed files with 6 additions and 1 deletions

View File

@@ -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;