Fixed orbiter direction at corners going down

This commit is contained in:
Rob McMullen 2017-07-22 07:47:12 -07:00
parent b665c92c4d
commit 10e8682f2f

View File

@ -503,8 +503,8 @@ pixel_move nop
; actor_xspeed[zp.current_actor] = level_speeds[zp.level] ; actor_xspeed[zp.current_actor] = level_speeds[zp.level]
; actor_yspeed[zp.current_actor] = 0 ; actor_yspeed[zp.current_actor] = 0
; direction in A, actor in X; clobbers all ; actor in X; clobbers all
set_speed nop set_speed lda actor_dir,x
and #TILE_VERT and #TILE_VERT
beq ?1 beq ?1
lda #0 lda #0
@ -565,9 +565,9 @@ decide_orbiter nop
?newdir lda current ?newdir lda current
and #TILE_VERT and #TILE_VERT
beq ?lr beq ?lr
lda allowed lda allowed
and #TILE_HORZ and #TILE_HORZ
beq ?lr
sta actor_dir,x sta actor_dir,x
; horizontal direction allowed; reset vertical subpixel to be right in the middle ; horizontal direction allowed; reset vertical subpixel to be right in the middle