File tree Expand file tree Collapse file tree 1 file changed +14
-23
lines changed Expand file tree Collapse file tree 1 file changed +14
-23
lines changed Original file line number Diff line number Diff line change @@ -6,21 +6,10 @@ playState_updateLinesAndStatistics:
6
6
7
7
@linesCleared:
8
8
tax
9
- dex
10
- lda lineClearStatsByType,x
11
- clc
12
- adc #$01
13
- sta lineClearStatsByType,x
14
- and #$0F
15
- cmp #$0A
16
- bmi @noCarry
17
- lda crashFlag
18
- ora #$04
19
- sta crashFlag
20
- lda lineClearStatsByType,x
21
- clc
22
- adc #$06
23
- sta lineClearStatsByType,x
9
+ dec lineClearStatsByType-1 ,x
10
+ bpl @noCarry
11
+ lda #$09
12
+ sta lineClearStatsByType-1 ,x
24
13
@noCarry:
25
14
lda outOfDateRenderFlags
26
15
ora #$01
@@ -561,15 +550,8 @@ testCrash:
561
550
@digit2:
562
551
lda crashFlag
563
552
and #$02
564
- beq @clearStats
565
- lda #$0C ; add 12 cycles for lines 100s place
566
- adc allegroIndex
567
- sta allegroIndex
568
- @clearStats:
569
- lda crashFlag
570
- and #$04
571
553
beq @newLevel
572
- lda #$0B ; 11 cycles for clearcount 10s place
554
+ lda #$0C ; add 12 cycles for lines 100s place
573
555
adc allegroIndex
574
556
sta allegroIndex
575
557
@newLevel:
@@ -596,6 +578,15 @@ testCrash:
596
578
bcc @scoreCycles
597
579
@single:
598
580
lda completedLines
581
+ beq @dontClearCount
582
+ tax
583
+ ldy lineClearStatsByType-1 ,x
584
+ beq @dontClearCount
585
+ lda #$0B ; 11 cycles for clearcount 10s place
586
+ adc allegroIndex
587
+ sta allegroIndex
588
+ txa
589
+ @dontClearCount:
599
590
cmp #$01
600
591
bne @notsingle
601
592
lda #$34 ; 53 for singles, carry is set
You can’t perform that action at this time.
0 commit comments