summaryrefslogtreecommitdiff
path: root/engine/events_2.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-12-28 19:34:43 -0500
committerGitHub <noreply@github.com>2017-12-28 19:34:43 -0500
commit82a05a1752b476caab8951fe03f539dcc1a63669 (patch)
tree972f867159ded40695e868338bb697a303335b62 /engine/events_2.asm
parente2b378f5e32ea1416fbc9ac5e96d23be244e4a6b (diff)
parent50fc9c3389ae8130d3670683f22f3e49555c57a3 (diff)
Merge pull request #443 from xCrystal/master
Misc style cleanup and documentation
Diffstat (limited to 'engine/events_2.asm')
-rw-r--r--engine/events_2.asm10
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/events_2.asm b/engine/events_2.asm
index cab6b8bd0..cac736bab 100644
--- a/engine/events_2.asm
+++ b/engine/events_2.asm
@@ -2,7 +2,7 @@
WarpToSpawnPoint:: ; 97c28
- ld hl, StatusFlags2
+ ld hl, wStatusFlags2
res 1, [hl] ; safari zone?
res 2, [hl] ; bug contest
ret
@@ -108,7 +108,7 @@ RandomEncounter:: ; 97cc0
jr c, .nope
call CanUseSweetScent
jr nc, .nope
- ld hl, StatusFlags2
+ ld hl, wStatusFlags2
bit 2, [hl] ; bug contest
jr nz, .bug_contest
farcall TryWildEncounter
@@ -149,7 +149,7 @@ WildBattleScript: ; 97cf9
; 97cfd
CanUseSweetScent:: ; 97cfd
- ld hl, StatusFlags
+ ld hl, wStatusFlags
bit 5, [hl]
jr nz, .no
ld a, [wEnvironment]
@@ -263,7 +263,7 @@ DoBikeStep:: ; 97db3
; If the bike shop owner doesn't have our number, or
; if we've already gotten the call, we don't have to
; be here.
- ld hl, StatusFlags2
+ ld hl, wStatusFlags2
bit 4, [hl] ; bike shop call
jr z, .NoCall
@@ -314,7 +314,7 @@ DoBikeStep:: ; 97db3
ld [wSpecialPhoneCallID], a
xor a
ld [wSpecialPhoneCallID + 1], a
- ld hl, StatusFlags2
+ ld hl, wStatusFlags2
res 4, [hl] ; bike shop call
scf
ret