mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07: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
|