Fixing crashes
This commit is contained in:
@@ -185,7 +185,8 @@ DrHudDungeonItemsAdditions:
|
|||||||
tya : !add #$003c : tay
|
tya : !add #$003c : tay
|
||||||
+ lda CompassField : and.l $0098c0, x : beq + ; must have compass
|
+ lda CompassField : and.l $0098c0, x : beq + ; must have compass
|
||||||
phx ; total chest counts
|
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 $06 : jsr ConvertToDisplay2 : sta $1644, y : iny #2
|
||||||
lda $07 : jsr ConvertToDisplay2 : sta $1644, y
|
lda $07 : jsr ConvertToDisplay2 : sta $1644, y
|
||||||
plx
|
plx
|
||||||
|
|||||||
@@ -324,7 +324,7 @@ IncrementCountsForSubstitute:
|
|||||||
LDA TotalItemCounter : INC : STA TotalItemCounter ; Increment Item Total
|
LDA TotalItemCounter : INC : STA TotalItemCounter ; Increment Item Total
|
||||||
INC.w UpdateHUD
|
INC.w UpdateHUD
|
||||||
.obtained
|
.obtained
|
||||||
SEP #$20 : PLX
|
SEP #$30 : PLX
|
||||||
RTS
|
RTS
|
||||||
|
|
||||||
ClearSpriteData:
|
ClearSpriteData:
|
||||||
|
|||||||
@@ -319,7 +319,7 @@ DrawCompassCounts:
|
|||||||
CMP.w #100 : BCS .three_digits
|
CMP.w #100 : BCS .three_digits
|
||||||
CMP.w #10 : BCS .two_digits
|
CMP.w #10 : BCS .two_digits
|
||||||
|
|
||||||
LDA.l CompassTotalsOneDigit, X : STA.w HUDTileMapBuffer+$9C
|
LDA.l CompassTotalsOneDigit, X : STA.w HUDTileMapBuffer+$9A
|
||||||
PLA
|
PLA
|
||||||
JSR HUDHex2Digit
|
JSR HUDHex2Digit
|
||||||
STX.w HUDTileMapBuffer+$96
|
STX.w HUDTileMapBuffer+$96
|
||||||
|
|||||||
Reference in New Issue
Block a user