mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
21 lines
332 B
NASM
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
|