You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
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
|
||||
|
@@ -202,7 +202,7 @@ CheckStandingOnEntrance::
|
||||
GetMapObject::
|
||||
; Return the location of map object a in bc.
|
||||
ld hl, wMapObjects
|
||||
ld bc, OBJECT_LENGTH
|
||||
ld bc, MAPOBJECT_LENGTH
|
||||
call AddNTimes
|
||||
ld b, h
|
||||
ld c, l
|
||||
@@ -358,7 +358,7 @@ CopyPlayerObjectTemplate::
|
||||
ld [de], a
|
||||
inc de
|
||||
pop hl
|
||||
ld bc, OBJECT_LENGTH - 1
|
||||
ld bc, MAPOBJECT_LENGTH - 1
|
||||
call CopyBytes
|
||||
ret
|
||||
|
||||
@@ -370,7 +370,7 @@ Unreferenced_Function19b8:
|
||||
push af
|
||||
ld [hl], -1
|
||||
inc hl
|
||||
ld bc, OBJECT_LENGTH - 1
|
||||
ld bc, MAPOBJECT_LENGTH - 1
|
||||
xor a
|
||||
call ByteFill
|
||||
pop af
|
||||
@@ -424,7 +424,7 @@ FindFirstEmptyObjectStruct::
|
||||
push bc
|
||||
push de
|
||||
ld hl, wObjectStructs
|
||||
ld de, OBJECT_STRUCT_LENGTH
|
||||
ld de, OBJECT_LENGTH
|
||||
ld c, NUM_OBJECT_STRUCTS
|
||||
.loop
|
||||
ld a, [hl]
|
||||
@@ -594,7 +594,7 @@ UpdateSprites::
|
||||
ret
|
||||
|
||||
GetObjectStruct::
|
||||
ld bc, OBJECT_STRUCT_LENGTH
|
||||
ld bc, OBJECT_LENGTH
|
||||
ld hl, wObjectStructs
|
||||
call AddNTimes
|
||||
ld b, h
|
||||
|
@@ -15,7 +15,7 @@ _CheckTrainerBattle::
|
||||
|
||||
; Skip the player object.
|
||||
ld a, 1
|
||||
ld de, wMapObjects + OBJECT_LENGTH
|
||||
ld de, wMapObjects + MAPOBJECT_LENGTH
|
||||
|
||||
.loop
|
||||
|
||||
@@ -78,7 +78,7 @@ _CheckTrainerBattle::
|
||||
|
||||
.next
|
||||
pop de
|
||||
ld hl, OBJECT_LENGTH
|
||||
ld hl, MAPOBJECT_LENGTH
|
||||
add hl, de
|
||||
ld d, h
|
||||
ld e, l
|
||||
|
Reference in New Issue
Block a user