Skip to content

Commit eac8ba2

Browse files
committed
* Decrement camera_y_sub to avoid it being stuck at some value and showing rows where they shouldn't be
1 parent 94984e5 commit eac8ba2

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/x_rmtran.asm

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,10 @@ transLoopMain:
337337
lda #cspeed
338338
jsr xt_shifttrace
339339

340+
lda camera_y_sub
341+
beq :+
342+
dec camera_y_sub
343+
:
340344
jsr shiftPlayerY
341345

342346
lda #cspeed
@@ -746,6 +750,10 @@ writeloop:
746750
; camoff_H is the low byte, camoff_M is the high byte.
747751
jsr addtocameraX
748752

753+
lda camera_y_sub
754+
beq :+
755+
dec camera_y_sub
756+
:
749757
; every some frames, add slightly more to the camera and player X to perform a course correction
750758
lda transtimer
751759
and #1
@@ -1308,7 +1316,11 @@ writeloop:
13081316
; camoff_H is the low byte, camoff_M is the high byte.
13091317
jsr gm_leaveroomU_FAR::addtocameraX
13101318

1311-
; every some frames, add slightly more to the camera and player X to perform a course correction
1319+
lda camera_y_sub
1320+
beq :+
1321+
dec camera_y_sub
1322+
1323+
: ; every some frames, add slightly more to the camera and player X to perform a course correction
13121324
lda transtimer
13131325
and #1
13141326
bne :+
@@ -1739,6 +1751,10 @@ transLoopMain:
17391751
lda #cspeed
17401752
jsr xt_shiftrighttrace
17411753

1754+
lda camera_y_sub
1755+
beq :+
1756+
dec camera_y_sub
1757+
:
17421758
jsr gm_leaveroomR_FAR::shiftPlayerY
17431759

17441760
ldx trantmp4

0 commit comments

Comments
 (0)