mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
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:
parent
317188b35f
commit
c22e268083
@ -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
|
||||
|
@ -240,7 +240,7 @@ LinkTradeMenu:
|
||||
ret
|
||||
|
||||
.loop2
|
||||
call RTC
|
||||
call UpdateTimeAndPals
|
||||
call .TryAnims
|
||||
ret c
|
||||
ld a, [w2DMenuFlags1]
|
||||
|
@ -344,7 +344,7 @@ MenuJoypadLoop:
|
||||
|
||||
Do2DMenuRTCJoypad:
|
||||
.loopRTC
|
||||
call RTC
|
||||
call UpdateTimeAndPals
|
||||
call Menu_WasButtonPressed
|
||||
ret c
|
||||
ld a, [w2DMenuFlags1]
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -1,4 +1,4 @@
|
||||
RTC::
|
||||
UpdateTimeAndPals::
|
||||
; update time and time-sensitive palettes
|
||||
|
||||
; rtc enabled?
|
||||
|
Loading…
Reference in New Issue
Block a user