Fix incorrect dungeon reminder appearing briefly out of map

This commit is contained in:
2026-01-07 20:21:20 -06:00
parent aae220fb46
commit ba9f0c7555
2 changed files with 20 additions and 12 deletions

View File

@@ -45,10 +45,10 @@ DRHUD_BossIndicator:
LDA.w CompassField : AND.l DungeonMask, x
SEP #$20
BEQ .draw_indicator
LDA.l CompassBossIndicator, x : CMP.b RoomIndex : BNE .draw_indicator
LDY.w #!RedSquare
LDA.l CompassBossIndicator, x : CMP.b RoomIndex : BNE .draw_indicator
LDY.w #!RedSquare
.draw_indicator
STY.w HUDMultiIndicator
STY.w HUDMultiIndicator
BRA DRHUD_DrawCurrentDungeonIndicator
DRHUD_EnemyDropIndicator:
@@ -59,12 +59,20 @@ DRHUD_EnemyDropIndicator:
SEP #$10 : TAX : REP #$10
DRHUD_DrawCurrentDungeonIndicator: ; mX
LDA.l DRMode : BIT.b #$02 : BEQ DRHUD_Finished
LDY.w #!BlankTile
LDA.w CurrentHealth : BEQ .draw_indicator
LDA.l DRMode : BIT.b #$02 : BNE + : JMP DRHUD_Finished : +
LDY.w #!BlankTile
LDA.w CurrentHealth : BEQ .draw_indicator
REP #$20 : LDA.l DungeonReminderTable,X : TAY
SEP #$20
LDA.b GameMode
CMP.b #$0E : BNE .get_indicator
LDA.b GameSubMode
CMP.b #$03 : BNE .get_indicator
LDA.w SubModuleInterface
CMP.b #$06 : BEQ .draw_indicator
.get_indicator
REP #$20 : LDA.l DungeonReminderTable,X : TAY
SEP #$20
.draw_indicator
STY.w HUDCurrentDungeonWorld

View File

@@ -23,7 +23,7 @@ CheckSwitchMap:
STA.w DungeonID
LDA.b #$04
STA.w $0200
STA.w SubModuleInterface
REP #$20
LDA.w #$0000
RTL
@@ -37,7 +37,7 @@ DungeonMapSwitch_Submodule:
STA.w $0710
LDA.b #$01
STA.w $0200
STA.w SubModuleInterface
STA.w $020D
STZ.w $0213
STZ.w $021B
@@ -78,7 +78,7 @@ SkipMapSprites:
LDA.l DRMode
BNE +
LDA.w $0200
LDA.w SubModuleInterface
CMP.b #$04
BEQ +
JSL DrawEntrances
@@ -91,7 +91,7 @@ SkipMapSprites:
STZ.b $0E
STZ.b $0F
LDA.w $0200
LDA.w SubModuleInterface
CMP.b #$04
BNE +
JML $8AEAFC