"Pic Pointers" and "Unown Pic Pointers" must start at the same address

Use `|` not `+` to combine bitmasks
This commit is contained in:
Remy Oukaour 2017-12-11 18:39:39 -05:00
parent 2d644f5077
commit dc4357b7fa
3 changed files with 6 additions and 7 deletions

View File

@ -165,7 +165,7 @@ CheckPhoneContactTimeOfDay: ; 900ad (24:40ad)
callba CheckTime
pop af
and MORN + DAY + NITE
and MORN | DAY | NITE
and c
pop de

View File

@ -1,20 +1,17 @@
INCLUDE "includes.asm"
SECTION "Pic Pointers", ROMX
; PicPointers and UnownPicPointers are assumed to start at the same address,
; but in different banks. This is enforced in pokecrystal.link.
SECTION "Pic Pointers", ROMX
PicPointers:: INCLUDE "gfx/pics/pic_pointers.asm"
SECTION "Unown Pic Pointers", ROMX
; Unown pic pointers are assumed to start at the same address as PicPointers,
; but in a different bank.
UnownPicPointers:: INCLUDE "gfx/pics/unown_pic_pointers.asm"
SECTION "Trainer Pic Pointers", ROMX
TrainerPicPointers:: INCLUDE "gfx/trainer_pic_pointers.asm"

View File

@ -191,9 +191,11 @@ ROMX $46
ROMX $47
"bank47"
ROMX $48
org $4000
"Pic Pointers"
"Pics 1"
ROMX $49
org $4000
"Unown Pic Pointers"
"Pics 2"
ROMX $4a