Rename OBJECT_LENGTH to MAPOBJECT_LENGTH and OBJECT_STRUCT_LENGTH to OBJECT_LENGTH
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user