aboutsummaryrefslogtreecommitdiffstats
path: root/engine/gfx
diff options
context:
space:
mode:
authorVortyne <104168801+Vortyne@users.noreply.github.com>2023-11-20 17:23:22 -0500
committerGitHub <noreply@github.com>2023-11-20 17:23:22 -0500
commit7a7a6d689c1fc2cd42ae925e4c7e19434a4e0267 (patch)
tree312ef637d2150eb2ae8ce88ef55aaf68b98fd4ba /engine/gfx
parentName 2 unnamed labels I missed in SeafoamIslandsB4F and PokemonMansion3F (#437) (diff)
downloadpokeyellow-7a7a6d689c1fc2cd42ae925e4c7e19434a4e0267.tar.gz
pokeyellow-7a7a6d689c1fc2cd42ae925e4c7e19434a4e0267.tar.xz
pokeyellow-7a7a6d689c1fc2cd42ae925e4c7e19434a4e0267.zip
Identify the unnamed HRAM variables and one WRAM label (#438)
Diffstat (limited to 'engine/gfx')
-rw-r--r--engine/gfx/sprite_oam.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/gfx/sprite_oam.asm b/engine/gfx/sprite_oam.asm
index 69956a31..4a31ab5e 100644
--- a/engine/gfx/sprite_oam.asm
+++ b/engine/gfx/sprite_oam.asm
@@ -28,7 +28,7 @@ PrepareOAMData::
inc e
inc e
ld a, [de] ; [x#SPRITESTATEDATA1_IMAGEINDEX]
- ld [wd5cd], a
+ ld [wSpriteImageIndexBackup], a
cp $ff ; off-screen (don't draw)
jr nz, .visible
@@ -98,7 +98,7 @@ PrepareOAMData::
push bc
ld b, a
- ld a, [wd5cd] ; temp copy of [x#SPRITESTATEDATA1_IMAGEINDEX]
+ ld a, [wSpriteImageIndexBackup]
swap a ; high nybble determines sprite used (0 is always player sprite, next are some npcs)
and $f