Skip to content

Commit 027858b

Browse files
committed
fix: clear storms on shipwreck
Wreck left wStormT running, so an active storm could sweep the respawn straight into another wreck, over and over.
1 parent 6d5f308 commit 027858b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/sail.asm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,10 @@ Wreck::
642642
ld [wGold], a
643643
ld a, 10
644644
ld [wHull], a
645+
xor a
646+
ld [wStormT], a ; the storm spends itself on the wreck —
647+
ld [wStormT+1], a ; else it sweeps the respawn into another
648+
; wreck, over and over
645649
; wreck message
646650
call WaitVBlankPoll
647651
xor a

0 commit comments

Comments
 (0)