shithub: pokecrystal

ref: 0d5cf5c8b9066b407f8dc1879dad56d53f5d0179
dir: /engine/tilesets/mapgroup_roofs.asm/

View raw version
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"