ootw: fix bug where the door limits were only calculated at beginning

this doesn't work if we're falling and so no doors are on our Y
so re-call the room-limit routine once we land
This commit is contained in:
Vince Weaver 2020-01-29 22:23:55 -05:00
parent 6356acb5f3
commit 8aa63389e1
2 changed files with 6 additions and 0 deletions

View File

@ -118,6 +118,10 @@ wait_loop:
jmp ootw jmp ootw
; hack, we don't have doors in l1
recalc_walk_collision:
rts
end_message: end_message:
.byte 8,10,"PRESS RETURN TO CONTINUE",0 .byte 8,10,"PRESS RETURN TO CONTINUE",0
.byte 11,20,"ACCESS CODE: IH8S",0 .byte 11,20,"ACCESS CODE: IH8S",0

View File

@ -515,6 +515,8 @@ fall_down_destination_smc:
bne still_falling_down bne still_falling_down
done_falling_down: done_falling_down:
jsr recalc_walk_collision
lda #P_CROUCHING lda #P_CROUCHING
sta PHYSICIST_STATE sta PHYSICIST_STATE
jmp physicist_crouching jmp physicist_crouching