summaryrefslogtreecommitdiff
path: root/engine/timeofdaypals.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-12-28 01:30:36 -0500
committerGitHub <noreply@github.com>2017-12-28 01:30:36 -0500
commitda28d1a84b0499bead314e17ae2ff0d13eb03196 (patch)
treec212adfc53d1996c06f2e4be1d6e480e687a2ad8 /engine/timeofdaypals.asm
parentbad9e33530af8cdc29ce5629df682fc7915bfff0 (diff)
parent2c4777f3363cd64d05fb00084fd83dff8ac31674 (diff)
Merge pull request #437 from roukaour/master
Reorganize battle/; rename most "header" misnomers; gfx/pics → gfx/pokemon
Diffstat (limited to 'engine/timeofdaypals.asm')
-rw-r--r--engine/timeofdaypals.asm13
1 files changed, 6 insertions, 7 deletions
diff --git a/engine/timeofdaypals.asm b/engine/timeofdaypals.asm
index a4a07bc4d..7fc364f70 100644
--- a/engine/timeofdaypals.asm
+++ b/engine/timeofdaypals.asm
@@ -41,19 +41,18 @@ _TimeOfDayPals:: ; 8c011
; update palette id
ld [TimeOfDayPal], a
-
-; save bg palette 8
- ld hl, UnknBGPals + 8 * 7 ; UnknBGPals + 7 pals
+; save bg palette 7
+ ld hl, UnknBGPals palette PAL_BG_TEXT
; save wram bank
ld a, [rSVBK]
ld b, a
; wram bank 5
- ld a, 5
+ ld a, $5
ld [rSVBK], a
; push palette
- ld c, 4 ; NUM_PAL_COLORS
+ ld c, NUM_PAL_COLORS
.push
ld d, [hl]
inc hl
@@ -73,7 +72,7 @@ _TimeOfDayPals:: ; 8c011
call GetSGBLayout
-; restore bg palette 8
+; restore bg palette 7
ld hl, UnknOBPals - 1 ; last byte in UnknBGPals
; save wram bank
@@ -84,7 +83,7 @@ _TimeOfDayPals:: ; 8c011
ld [rSVBK], a
; pop palette
- ld e, 4 ; NUM_PAL_COLORS
+ ld e, NUM_PAL_COLORS
.pop
pop bc
ld [hl], c