summaryrefslogtreecommitdiff
path: root/home/map_objects.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2016-08-11 15:55:32 -0400
committerGitHub <noreply@github.com>2016-08-11 15:55:32 -0400
commit700321a7fb2d6c852ffc91cc0b8867526cb76813 (patch)
tree1a81b2ef5a4d7a2e5a9433e990ea178f5083acbf /home/map_objects.asm
parentc33ba049a5a993fc678fd1698645039ce4974022 (diff)
parent050a0162b89c645c4a2a3ed311c4da791fb3de6c (diff)
Merge pull request #342 from PikalaxALT/master
More label interpretations
Diffstat (limited to 'home/map_objects.asm')
-rw-r--r--home/map_objects.asm8
1 files changed, 3 insertions, 5 deletions
diff --git a/home/map_objects.asm b/home/map_objects.asm
index 3c70233eb..f64ebd8ab 100644
--- a/home/map_objects.asm
+++ b/home/map_objects.asm
@@ -28,9 +28,8 @@ GetSpriteVTile:: ; 180e
.loop
cp [hl]
jr z, .found
-rept 2
inc hl
-endr
+ inc hl
dec c
jr nz, .loop
ld a, [UsedSprites + 1]
@@ -503,9 +502,8 @@ rept SPRITEMOVEDATA_FIELDS
endr
ld a, BANK(SpriteMovementData)
call GetFarByte
-rept 2
add a
-endr
+ add a
and $c
pop de
pop bc
@@ -638,7 +636,7 @@ GetObjectStruct:: ; 1ae5
ret
; 1af1
-GetObjectSprite:: ; 1af1
+DoesObjectHaveASprite:: ; 1af1
ld hl, OBJECT_SPRITE
add hl, bc
ld a, [hl]