pokecrystal-board/home/time_palettes.asm

21 lines
332 B
NASM

UpdateTimeSensitivePals::
; update time-sensitive palettes if overworld sprite updates are enabled
; sprite updates enabled?
ld a, [wSpriteUpdatesEnabled]
cp 0
ret z
; obj update on?
ld a, [wVramState]
bit 0, a ; obj update
ret z
TimeOfDayPals::
callfar _TimeOfDayPals
ret
UpdateTimePals::
callfar _UpdateTimePals
ret