diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-12-23 16:54:26 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-12-23 16:54:26 -0500 |
commit | ed133f5c9afac83b9f9ca4f6951c5bdbe4c95fc5 (patch) | |
tree | 5731b13e7f583e7be713b20cd1b08ec4d72ef237 /engine/overworld/map_objects.asm | |
parent | 524f57703fb362dd9a131edb1eb5aebad5ffe633 (diff) |
Remove "Buffer" suffix from two HRAM labels
Diffstat (limited to 'engine/overworld/map_objects.asm')
-rw-r--r-- | engine/overworld/map_objects.asm | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/engine/overworld/map_objects.asm b/engine/overworld/map_objects.asm index 3c58f60f..c30bc695 100644 --- a/engine/overworld/map_objects.asm +++ b/engine/overworld/map_objects.asm @@ -1040,7 +1040,7 @@ _RandomWalkContinue: add hl, bc ld [hl], OBJECT_ACTION_STEP ld hl, wCenteredObject - ldh a, [hMapObjectIndexBuffer] + ldh a, [hMapObjectIndex] cp [hl] jr z, .centered ld hl, OBJECT_STEP_TYPE @@ -1913,7 +1913,7 @@ ApplyMovementToFollower: ret z ld a, [wObjectFollow_Leader] ld d, a - ldh a, [hMapObjectIndexBuffer] + ldh a, [hMapObjectIndex] cp d ret nz ld a, e @@ -2053,7 +2053,7 @@ ShakeScreen: DespawnEmote: push bc - ldh a, [hMapObjectIndexBuffer] + ldh a, [hMapObjectIndex] ld c, a call .DeleteEmote pop bc @@ -2098,7 +2098,7 @@ InitTempObject: CopyTempObjectData: ; load into wTempObjectCopy: -; -1, -1, [de], [de + 1], [de + 2], [hMapObjectIndexBuffer], [NextMapX], [NextMapY], -1 +; -1, -1, [de], [de + 1], [de + 2], [hMapObjectIndex], [NextMapX], [NextMapY], -1 ; This spawns the object at the same place as whichever object is loaded into bc. ld hl, wTempObjectCopyMapObjectIndex ld [hl], -1 @@ -2113,7 +2113,7 @@ CopyTempObjectData: ld [hli], a ld a, [de] ld [hli], a - ldh a, [hMapObjectIndexBuffer] + ldh a, [hMapObjectIndex] ld [hli], a push hl ld hl, OBJECT_NEXT_MAP_X @@ -2137,7 +2137,7 @@ UpdateAllObjectsFrozen:: ld bc, wObjectStructs xor a .loop - ldh [hMapObjectIndexBuffer], a + ldh [hMapObjectIndex], a call DoesObjectHaveASprite jr z, .ok call UpdateObjectFrozen @@ -2146,7 +2146,7 @@ UpdateAllObjectsFrozen:: add hl, bc ld b, h ld c, l - ldh a, [hMapObjectIndexBuffer] + ldh a, [hMapObjectIndex] inc a cp NUM_OBJECT_STRUCTS jr nz, .loop @@ -2189,13 +2189,13 @@ HideAllObjects: xor a ld bc, wObjectStructs .loop - ldh [hMapObjectIndexBuffer], a + ldh [hMapObjectIndex], a call SetFacing_Standing ld hl, OBJECT_LENGTH add hl, bc ld b, h ld c, l - ldh a, [hMapObjectIndexBuffer] + ldh a, [hMapObjectIndex] inc a cp NUM_OBJECT_STRUCTS jr nz, .loop @@ -2413,7 +2413,7 @@ DoStepsForAllObjects: ld bc, wObjectStructs xor a .loop - ldh [hMapObjectIndexBuffer], a + ldh [hMapObjectIndex], a call DoesObjectHaveASprite jr z, .next call HandleObjectStep @@ -2422,7 +2422,7 @@ DoStepsForAllObjects: add hl, bc ld b, h ld c, l - ldh a, [hMapObjectIndexBuffer] + ldh a, [hMapObjectIndex] inc a cp NUM_OBJECT_STRUCTS jr nz, .loop @@ -2485,7 +2485,7 @@ StartFollow:: SetLeaderIfVisible: call CheckObjectVisibility ret c - ldh a, [hObjectStructIndexBuffer] + ldh a, [hObjectStructIndex] ld [wObjectFollow_Leader], a ret @@ -2511,7 +2511,7 @@ SetFollowerIfVisible: ld hl, OBJECT_STEP_TYPE add hl, bc ld [hl], STEP_TYPE_RESET - ldh a, [hObjectStructIndexBuffer] + ldh a, [hObjectStructIndex] ld [wObjectFollow_Follower], a ret |