Small screen slam fix.

This commit is contained in:
Randy Thiemann 2023-11-11 17:28:07 +01:00
parent dd61282ebd
commit 91d1504e27
5 changed files with 2796 additions and 2782 deletions

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -1402,7 +1402,7 @@ FieldProcess::
.wantleft .wantleft
ldh a, [hCurrentPieceX] ldh a, [hCurrentPieceX]
cp a, 0 cp a, 0
jr z, .wantright jr z, .precheckright
ldh a, [hLeftState] ; Check if held for 1 frame. If so we move. ldh a, [hLeftState] ; Check if held for 1 frame. If so we move.
cp a, 1 cp a, 1
jr z, .doleft jr z, .doleft
@ -1421,6 +1421,11 @@ FieldProcess::
ldh [hWantX], a ldh [hWantX], a
jr .trymove jr .trymove
.precheckright
ldh a, [hRightState]
cp a, 0
jr z, .nomove
; Do we want to move right? ; Do we want to move right?
.wantright .wantright
ldh a, [hRightState] ; Check if held for 1 frame. If so we move. ldh a, [hRightState] ; Check if held for 1 frame. If so we move.
@ -3700,7 +3705,7 @@ BigFieldProcess::
.wantleft .wantleft
ldh a, [hCurrentPieceX] ldh a, [hCurrentPieceX]
cp a, 0 cp a, 0
jr z, .wantright jr z, .precheckright
ldh a, [hLeftState] ; Check if held for 1 frame. If so we move. ldh a, [hLeftState] ; Check if held for 1 frame. If so we move.
cp a, 1 cp a, 1
jr z, .doleft jr z, .doleft
@ -3719,6 +3724,11 @@ BigFieldProcess::
ldh [hWantX], a ldh [hWantX], a
jr .trymove jr .trymove
.precheckright
ldh a, [hRightState]
cp a, 0
jr z, .nomove
; Do we want to move right? ; Do we want to move right?
.wantright .wantright
ldh a, [hRightState] ; Check if held for 1 frame. If so we move. ldh a, [hRightState] ; Check if held for 1 frame. If so we move.