Fix swim state when leaving Hobo area

This commit is contained in:
Catobat
2023-02-24 13:14:19 +01:00
parent 3f13cee945
commit aa5c3b63a2

View File

@@ -608,6 +608,7 @@ OWEdgeTransition:
} }
OWSpecialExit: OWSpecialExit:
{ {
LDA.l OWMode : ORA.l OWMode+1 : BEQ .vanilla
PHY PHY
LDY.b #$00 LDY.b #$00
LDA.w $0418 : LSR : BNE + LDA.w $0418 : LSR : BNE +
@@ -618,6 +619,7 @@ OWSpecialExit:
++ ++
JSR OWWorldTerrainUpdate JSR OWWorldTerrainUpdate
PLY PLY
.vanilla
LDA.l $7EFD40,X ; what we wrote over LDA.l $7EFD40,X ; what we wrote over
RTL RTL
} }