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,16 +608,18 @@ OWEdgeTransition:
} }
OWSpecialExit: OWSpecialExit:
{ {
PHY LDA.l OWMode : ORA.l OWMode+1 : BEQ .vanilla
LDY.b #$00 PHY
LDA.w $0418 : LSR : BNE + LDY.b #$00
LDY.w $0704 : BRA ++ LDA.w $0418 : LSR : BNE +
+ LDY.w $0704 : BRA ++
LDA.w $0704 : BNE ++ +
LDY.b #$02 LDA.w $0704 : BNE ++
++ LDY.b #$02
JSR OWWorldTerrainUpdate ++
PLY JSR OWWorldTerrainUpdate
PLY
.vanilla
LDA.l $7EFD40,X ; what we wrote over LDA.l $7EFD40,X ; what we wrote over
RTL RTL
} }