Skip to content

Commit 062f5aa

Browse files
committed
fix crunch start row in updateMusicSpeed
1 parent c287378 commit 062f5aa

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/playstate/util.asm

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,14 @@ updateMusicSpeed:
8383
tay
8484

8585
; check if crunch mode
86-
lda practiseType
87-
cmp #MODE_CRUNCH
86+
ldx practiseType
87+
cpx #MODE_CRUNCH
8888
bne @notCrunch
8989

9090
; start at first clear column and repeat only for playable columns
91-
ldy crunchLeftColumns
91+
clc
92+
adc crunchLeftColumns ; accumulator is still 50, offset with left columns
93+
tay
9294
ldx crunchClearColumns
9395
bne @checkForBlockInRow ; unconditional, expected range 4 - 10
9496

0 commit comments

Comments
 (0)