summaryrefslogtreecommitdiff
path: root/engine/map_objects.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-12-25 19:01:36 -0500
committerGitHub <noreply@github.com>2017-12-25 19:01:36 -0500
commit73db02d3cdaf81a214ec6faa5462195618a80a48 (patch)
treeb4d1a5187fda9da6186c52c03e836a5ff8f4dd90 /engine/map_objects.asm
parentec8c9688ce970b9c3b63a5b287a99542f0bc9984 (diff)
parent29b41068cb0644956494dd2b7b75331a336b8d26 (diff)
Merge pull request #433 from roukaour/master
More code cleanup
Diffstat (limited to 'engine/map_objects.asm')
-rw-r--r--engine/map_objects.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/map_objects.asm b/engine/map_objects.asm
index c37e6d2cf..bfeefa467 100644
--- a/engine/map_objects.asm
+++ b/engine/map_objects.asm
@@ -2812,7 +2812,7 @@ _UpdateSprites:: ; 5920
.fill
ld a, [VramState]
bit 1, a
- ld b, SpritesEnd % $100
+ ld b, LOW(SpritesEnd)
jr z, .ok
ld b, 28 * 4
.ok
@@ -2820,7 +2820,7 @@ _UpdateSprites:: ; 5920
cp b
ret nc
ld l, a
- ld h, Sprites / $100
+ ld h, HIGH(Sprites)
ld de, 4
ld a, b
ld c, SCREEN_HEIGHT_PX + 16
@@ -3032,11 +3032,11 @@ PRIORITY_HIGH EQU $30
ld l, a
ld a, [hUsedSpriteIndex]
ld c, a
- ld b, Sprites / $100
+ ld b, HIGH(Sprites)
ld a, [hli]
ld [hUsedSpriteTile], a
add c
- cp SpritesEnd % $100
+ cp LOW(SpritesEnd)
jr nc, .full
.addsprite
ld a, [hFFC0]