RTC -> UpdateTimeAndPals

Rename clear misnomer.
Most of the related functions in that file aren't really aptly named but
I don't know good names right now.
This commit is contained in:
mid-kid 2020-02-19 19:08:40 +01:00
parent 317188b35f
commit c22e268083
6 changed files with 7 additions and 7 deletions

View File

@ -92,7 +92,7 @@ HideHeadbuttTree:
ld h, [hl]
ld l, a
ld a, $5
ld a, $05 ; grass block
ld [hli], a
ld [hld], a
ld bc, SCREEN_WIDTH

View File

@ -240,7 +240,7 @@ LinkTradeMenu:
ret
.loop2
call RTC
call UpdateTimeAndPals
call .TryAnims
ret c
ld a, [w2DMenuFlags1]

View File

@ -344,7 +344,7 @@ MenuJoypadLoop:
Do2DMenuRTCJoypad:
.loopRTC
call RTC
call UpdateTimeAndPals
call Menu_WasButtonPressed
ret c
ld a, [w2DMenuFlags1]

View File

@ -295,7 +295,7 @@ JoyWaitAorB::
ldh a, [hJoyPressed]
and A_BUTTON | B_BUTTON
ret nz
call RTC
call UpdateTimeAndPals
jr .loop
WaitButton::
@ -413,7 +413,7 @@ PromptButton::
ldh a, [hJoyPressed]
and A_BUTTON | B_BUTTON
jr nz, .received_input
call RTC
call UpdateTimeAndPals
ld a, $1
ldh [hBGMapMode], a
call DelayFrame

View File

@ -125,7 +125,7 @@ GetPokemonName::
ld e, a
ld h, 0
ld l, a
add hl, hl ; hl = hl * 4
add hl, hl ; hl = hl * 2
add hl, hl ; hl = hl * 4
add hl, de ; hl = (hl*4) + de
add hl, hl ; hl = (5*hl) + (5*hl)

View File

@ -1,4 +1,4 @@
RTC::
UpdateTimeAndPals::
; update time and time-sensitive palettes
; rtc enabled?