first line award, then level up when a piece spawns.

This commit is contained in:
Randy Thiemann 2023-10-24 04:59:25 +02:00
parent 3a6de627ee
commit 83006e64eb
1 changed files with 7 additions and 7 deletions

View File

@ -1738,13 +1738,6 @@ FieldDelay::
; If so, we need to do a line clear delay.
; Otherwise, we skip to ARE delay.
.determine
; Add one level if we're not at a breakpoint.
ldh a, [hRequiresLineClear]
cp a, $FF
jr z, .are
ld e, 1
call LevelUp
; Increment bravo by 4.
ldh a, [hBravo]
add a, 4
@ -1939,6 +1932,13 @@ FieldDelay::
cp a, 0
ret nz
; Add one level if we're not at a breakpoint.
ldh a, [hRequiresLineClear]
cp a, $FF
jr z, :+
ld e, 1
call LevelUp
; Cycle the RNG.
ldh a, [hNextPiece]
ldh [hCurrentPiece], a