Skip to content

Commit

Permalink
Fix bug with MermaidHut6Drums machine TryMove errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsteele committed Oct 2, 2024
1 parent 26b6f23 commit 67de87e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/rooms/mermaid_hut6.asm
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
.IMPORT Ram_MachineGoalHorz_u8_arr
.IMPORT Ram_MachineGoalVert_u8_arr
.IMPORT Ram_MachineSlowdown_u8_arr
.IMPORT Ram_MachineStatus_eMachine_arr
.IMPORT Ram_PlatformLeft_i16_0_arr
.IMPORT Ram_PlatformTop_i16_0_arr
.IMPORTZP Zp_PointX_i16
Expand Down Expand Up @@ -424,8 +425,13 @@ _MachineLight:
.PROC FuncA_Machine_MermaidHut6Drums_TryMove
lda #1 ; param: max vertical goal
jsr FuncA_Machine_GenericTryMoveY
lda Ram_MachineStatus_eMachine_arr + kDrumsMachineIndex
cmp #eMachine::Error
beq @done
lda #$08 ; param: num frames
jmp FuncA_Machine_StartWaiting
@done:
rts
.ENDPROC

.PROC FuncA_Machine_MermaidHut6Drums_TryAct
Expand Down

0 comments on commit 67de87e

Please sign in to comment.