summaryrefslogtreecommitdiff
path: root/home/map_objects.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-12-23 16:54:28 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2020-12-23 16:54:28 -0500
commit5db892782adaa5bb5a3e4cd6fa06565764bd1fb0 (patch)
tree006b809d2d77e34b57db5688fa9529f8cc7ab64b /home/map_objects.asm
parent99e66c25577e367d6c7ca75fea8b466b54c3317a (diff)
Remove "Buffer" suffix from two HRAM labels
Diffstat (limited to 'home/map_objects.asm')
-rw-r--r--home/map_objects.asm14
1 files changed, 7 insertions, 7 deletions
diff --git a/home/map_objects.asm b/home/map_objects.asm
index 64374c973..9e80e8cbe 100644
--- a/home/map_objects.asm
+++ b/home/map_objects.asm
@@ -20,7 +20,7 @@ GetSpriteVTile::
ld hl, wUsedSprites + 2
ld c, SPRITE_GFX_LIST_CAPACITY - 1
ld b, a
- ldh a, [hMapObjectIndexBuffer]
+ ldh a, [hMapObjectIndex]
cp 0
jr z, .nope
ld a, b
@@ -210,14 +210,14 @@ GetMapObject::
CheckObjectVisibility::
; Sets carry if the object is not visible on the screen.
- ldh [hMapObjectIndexBuffer], a
+ ldh [hMapObjectIndex], a
call GetMapObject
ld hl, MAPOBJECT_OBJECT_STRUCT_ID
add hl, bc
ld a, [hl]
cp -1
jr z, .not_visible
- ldh [hObjectStructIndexBuffer], a
+ ldh [hObjectStructIndex], a
call GetObjectStruct
and a
ret
@@ -301,21 +301,21 @@ CheckObjectTime::
ret
CopyMapObjectStruct:: ; unreferenced
- ldh [hMapObjectIndexBuffer], a
+ ldh [hMapObjectIndex], a
call GetMapObject
call CopyObjectStruct
ret
UnmaskCopyMapObjectStruct::
- ldh [hMapObjectIndexBuffer], a
+ ldh [hMapObjectIndex], a
call UnmaskObject
- ldh a, [hMapObjectIndexBuffer]
+ ldh a, [hMapObjectIndex]
call GetMapObject
farcall CopyObjectStruct
ret
ApplyDeletionToMapObject::
- ldh [hMapObjectIndexBuffer], a
+ ldh [hMapObjectIndex], a
call GetMapObject
ld hl, MAPOBJECT_OBJECT_STRUCT_ID
add hl, bc