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 h, [hl]
ld l, a ld l, a
ld a, $5 ld a, $05 ; grass block
ld [hli], a ld [hli], a
ld [hld], a ld [hld], a
ld bc, SCREEN_WIDTH ld bc, SCREEN_WIDTH

View File

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

View File

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

View File

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

View File

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

View File

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