diff --git a/gk/doors_dungeon_map.asm b/gk/doors_dungeon_map.asm index b0d501a..0fbbaca 100644 --- a/gk/doors_dungeon_map.asm +++ b/gk/doors_dungeon_map.asm @@ -688,6 +688,13 @@ GetSpecificRoomVisibility: STA.b $0A + + SEP #$20 + LDA.b $0A + CMP.b $0B + BCC + + STA.b $0B ++ + REP #$20 LDA.b $CA AND.w #$00FF diff --git a/gk/loot_hud.asm b/gk/loot_hud.asm index c8707ea..6f9fc3c 100644 --- a/gk/loot_hud.asm +++ b/gk/loot_hud.asm @@ -15,11 +15,21 @@ UpdateLootHUD: LDA.b $08 : PHA LDA.b $0E : PHA + ; if if door rando, check for section of supertile LDA.l DRMode BNE + - LDA.b RoomIndex - BRA .check -+ + + ; if not in door rando, check for section of supertile if we're not in a dungeon + LDA.w DungeonID + AND.w #$00FF + CMP.w #$00FF + BEQ + + + ; just load the room id, we don't care about sections + LDA.b RoomIndex + BRA .check + ++ ; figure out section before checking JSL DetectLinksSection INC A XBA