summaryrefslogtreecommitdiff
path: root/home/update_sprites.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/update_sprites.asm')
-rw-r--r--home/update_sprites.asm15
1 files changed, 15 insertions, 0 deletions
diff --git a/home/update_sprites.asm b/home/update_sprites.asm
new file mode 100644
index 00000000..0c32dad8
--- /dev/null
+++ b/home/update_sprites.asm
@@ -0,0 +1,15 @@
+UpdateSprites::
+ ld a, [wUpdateSpritesEnabled]
+ dec a
+ ret nz
+ ldh a, [hLoadedROMBank]
+ push af
+ switchbank _UpdateSprites
+ ld a, $ff
+ ld [wUpdateSpritesEnabled], a
+ call _UpdateSprites
+ ld a, $1
+ ld [wUpdateSpritesEnabled], a
+ pop af
+ call BankswitchCommon
+ ret