mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
40902ffe24
This was discussed in #706 It also uncovered some off-by-one issues with defining some constants. A few structs now use rsreset/_RS to define their offset constants, as discussed in #739
19 lines
275 B
NASM
19 lines
275 B
NASM
LoadMapGroupRoof::
|
|
ld a, [wMapGroup]
|
|
ld e, a
|
|
ld d, 0
|
|
ld hl, MapGroupRoofs
|
|
add hl, de
|
|
ld a, [hl]
|
|
cp -1
|
|
ret z
|
|
ld hl, Roofs
|
|
ld bc, ROOF_LENGTH tiles
|
|
call AddNTimes
|
|
ld de, vTiles2 tile $0a
|
|
ld bc, ROOF_LENGTH tiles
|
|
call CopyBytes
|
|
ret
|
|
|
|
INCLUDE "data/maps/roofs.asm"
|