summaryrefslogtreecommitdiff
path: root/engine/radio.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/radio.asm
parente2b378f5e32ea1416fbc9ac5e96d23be244e4a6b (diff)
parent50fc9c3389ae8130d3670683f22f3e49555c57a3 (diff)
Merge pull request #443 from xCrystal/master
Misc style cleanup and documentation
Diffstat (limited to 'engine/radio.asm')
-rw-r--r--engine/radio.asm16
1 files changed, 8 insertions, 8 deletions
diff --git a/engine/radio.asm b/engine/radio.asm
index b5c1e075f..42db63ab0 100644
--- a/engine/radio.asm
+++ b/engine/radio.asm
@@ -4,7 +4,7 @@ PlayRadioShow:
cp POKE_FLUTE_RADIO
jr nc, .ok
; If Team Rocket is not occupying the radio tower, we don't need to be here.
- ld a, [StatusFlags2]
+ ld a, [wStatusFlags2]
bit 0, a ; checkflag ENGINE_ROCKETS_IN_RADIO_TOWER
jr z, .ok
; If we're in Kanto, we don't need to be here.
@@ -1176,11 +1176,11 @@ PeoplePlaces4: ; People
jr nc, PeoplePlaces4
push af
ld hl, .E4Names
- ld a, [StatusFlags]
+ ld a, [wStatusFlags]
bit 6, a ; ENGINE_CREDITS_SKIP
jr z, .ok
ld hl, .KantoLeaderNames
- ld a, [KantoBadges]
+ ld a, [wKantoBadges]
cp %11111111
jr nz, .ok
ld hl, .MiscNames
@@ -1571,7 +1571,7 @@ BuenasPassword4:
jp c, BuenasPassword8
ld a, [wBuenasPassword]
; If we already generated the password today, we don't need to generate a new one.
- ld hl, WeeklyFlags
+ ld hl, wWeeklyFlags
bit 7, [hl]
jr nz, .AlreadyGotIt
; There are only 11 groups to choose from.
@@ -1593,7 +1593,7 @@ BuenasPassword4:
add e
ld [wBuenasPassword], a
; Set the flag so that we don't generate a new password this week.
- ld hl, WeeklyFlags
+ ld hl, wWeeklyFlags
set 7, [hl]
.AlreadyGotIt:
ld c, a
@@ -1737,14 +1737,14 @@ BuenasPassword7:
BuenasPasswordAfterMidnight:
push hl
- ld hl, WeeklyFlags
+ ld hl, wWeeklyFlags
res 7, [hl]
pop hl
ld a, BUENAS_PASSWORD_8
jp NextRadioLine
BuenasPassword8:
- ld hl, WeeklyFlags
+ ld hl, wWeeklyFlags
res 7, [hl]
ld hl, BuenaRadioMidnightText10
ld a, BUENAS_PASSWORD_9
@@ -1812,7 +1812,7 @@ BuenasPassword20:
farcall NoRadioName
pop af
ld [hBGMapMode], a
- ld hl, WeeklyFlags
+ ld hl, wWeeklyFlags
res 7, [hl]
ld a, BUENAS_PASSWORD
ld [wCurrentRadioLine], a