diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2019-11-03 12:25:59 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2019-11-03 12:26:38 -0500 |
commit | 5134266b9a4570f69df5e9bc8a0d91a116da796c (patch) | |
tree | a3706d30c1a0abb24f8200de1e3aabcfc3ebeecf /home/map.asm | |
parent | 01f68fcc6ab477c7feaa07979391de9649f70fb4 (diff) |
Rename OBJECT_LENGTH to MAPOBJECT_LENGTH and OBJECT_STRUCT_LENGTH to OBJECT_LENGTH
Diffstat (limited to 'home/map.asm')
-rw-r--r-- | home/map.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/home/map.asm b/home/map.asm index 617ac135a..9e0c12e00 100644 --- a/home/map.asm +++ b/home/map.asm @@ -597,7 +597,7 @@ ReadObjectEvents:: ; Fill the remaining sprite IDs and y coords with 0 and -1, respectively. ; Bleeds into wObjectMasks due to a bug. Uncomment the above subtraction ; to fix. - ld bc, OBJECT_LENGTH + ld bc, MAPOBJECT_LENGTH .loop ld [hl], 0 inc hl @@ -631,7 +631,7 @@ CopyMapObjectEvents:: jr nz, .loop2 pop hl - ld bc, OBJECT_LENGTH + ld bc, MAPOBJECT_LENGTH add hl, bc pop bc dec c @@ -640,13 +640,13 @@ CopyMapObjectEvents:: ClearObjectStructs:: ld hl, wObject1Struct - ld bc, OBJECT_STRUCT_LENGTH * (NUM_OBJECT_STRUCTS - 1) + ld bc, OBJECT_LENGTH * (NUM_OBJECT_STRUCTS - 1) xor a call ByteFill ; Just to make sure (this is rather pointless) ld hl, wObject1Struct - ld de, OBJECT_STRUCT_LENGTH + ld de, OBJECT_LENGTH ld c, NUM_OBJECT_STRUCTS - 1 xor a .loop |