mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
c22e268083
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.
23 lines
302 B
NASM
23 lines
302 B
NASM
UpdateTimeAndPals::
|
|
; update time and time-sensitive palettes
|
|
|
|
; rtc enabled?
|
|
ld a, [wSpriteUpdatesEnabled]
|
|
cp 0
|
|
ret z
|
|
|
|
call UpdateTime
|
|
|
|
; obj update on?
|
|
ld a, [wVramState]
|
|
bit 0, a ; obj update
|
|
ret z
|
|
|
|
TimeOfDayPals::
|
|
callfar _TimeOfDayPals
|
|
ret
|
|
|
|
UpdateTimePals::
|
|
callfar _UpdateTimePals
|
|
ret
|