From 5ccdebe09d237dd36085341cc334a053c6d93022 Mon Sep 17 00:00:00 2001 From: aerinon Date: Thu, 31 Aug 2023 14:22:46 -0600 Subject: [PATCH] Fixing crashes --- doorrando/hudadditions.asm | 3 ++- keydrop/standing_items.asm | 2 +- newhud.asm | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doorrando/hudadditions.asm b/doorrando/hudadditions.asm index f8cc449..c5cb6fe 100644 --- a/doorrando/hudadditions.asm +++ b/doorrando/hudadditions.asm @@ -185,7 +185,8 @@ DrHudDungeonItemsAdditions: tya : !add #$003c : tay + lda CompassField : and.l $0098c0, x : beq + ; must have compass phx ; total chest counts - lda.l CompassTotalsWRAM, x : !sub DungeonLocationsChecked, x : JSR HudHexToDec2DigitCopy + LDA.l CompassTotalsWRAM, x : !sub DungeonLocationsChecked, x + SEP #$30 : JSR HudHexToDec2DigitCopy : REP #$30 lda $06 : jsr ConvertToDisplay2 : sta $1644, y : iny #2 lda $07 : jsr ConvertToDisplay2 : sta $1644, y plx diff --git a/keydrop/standing_items.asm b/keydrop/standing_items.asm index e53c9f2..07b84ac 100644 --- a/keydrop/standing_items.asm +++ b/keydrop/standing_items.asm @@ -324,7 +324,7 @@ IncrementCountsForSubstitute: LDA TotalItemCounter : INC : STA TotalItemCounter ; Increment Item Total INC.w UpdateHUD .obtained - SEP #$20 : PLX + SEP #$30 : PLX RTS ClearSpriteData: diff --git a/newhud.asm b/newhud.asm index 175d8eb..46c3e57 100644 --- a/newhud.asm +++ b/newhud.asm @@ -319,7 +319,7 @@ DrawCompassCounts: CMP.w #100 : BCS .three_digits CMP.w #10 : BCS .two_digits - LDA.l CompassTotalsOneDigit, X : STA.w HUDTileMapBuffer+$9C + LDA.l CompassTotalsOneDigit, X : STA.w HUDTileMapBuffer+$9A PLA JSR HUDHex2Digit STX.w HUDTileMapBuffer+$96