From b6a7e5e9cf20e7924f6cf427c66e9aeb42fa77f3 Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Sat, 29 Aug 2015 17:15:05 -0700 Subject: documented flags and misc. fixes --- main.asm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'main.asm') diff --git a/main.asm b/main.asm index c87cd1f0..73f6de47 100755 --- a/main.asm +++ b/main.asm @@ -548,7 +548,7 @@ TestBattle: ld [W_OBTAINEDBADGES], a ld hl, W_FLAGS_D733 - set 0, [hl] + set BIT_TEST_BATTLE, [hl] ; Reset the party. ld hl, wPartyCount @@ -668,7 +668,7 @@ LoadSpecialWarpData: ; 62ff (1:62ff) xor a jr .done .notFirstMap - ld a, [wLastMap] + ld a, [wLastMap] ; this value is overwritten before it's ever read ld hl, wd732 bit 4, [hl] ; used dungeon warp (jumped down hole/waterfall)? jr nz, .usedDunegonWarp @@ -2751,7 +2751,10 @@ CanMoveBouldersText: ; cdbb (3:4dbb) TX_FAR _CanMoveBouldersText db "@" -CheckForForcedBikeSurf: ; cdc0 (3:4dc0) +IsSurfingAllowed: ; cdc0 (3:4dc0) +; Returns whether surfing is allowed in bit of d728. +; Surfing isn't allowed on the Cycling Road or in the lowest level of the +; Seafoam Islands before the current has been slowed with boulders. ld hl, wd728 set 1, [hl] ld a, [wd732] -- cgit v1.2.3