summaryrefslogtreecommitdiff
path: root/home/update_sprites.asm
blob: 5bb9ee1262190bb986eb773b0808632d1ccfa662 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
UpdateSprites::
	ld a, [wUpdateSpritesEnabled]
	dec a
	ret nz
	ldh a, [hLoadedROMBank]
	push af
	ld a, BANK(_UpdateSprites)
	call BankswitchCommon
	ld a, $ff
	ld [wUpdateSpritesEnabled], a
	call _UpdateSprites
	ld a, $1
	ld [wUpdateSpritesEnabled], a
	pop af
	call BankswitchCommon
	ret