summaryrefslogtreecommitdiff
path: root/engine/town_map.asm
diff options
context:
space:
mode:
authorDaniel Harding <corrnondacqb@yahoo.com>2015-08-30 20:40:32 -0500
committerDaniel Harding <corrnondacqb@yahoo.com>2015-08-30 20:40:32 -0500
commit1ee9fb408c47c3a15a38b1bb407d86ed1a5d2fcc (patch)
tree937d54d5f4c7ee08099669e2742704800dab11d2 /engine/town_map.asm
parent1a987d1e1ab96ca9553d4253c72858057332a03a (diff)
parent4cfcc2f589d07e0b038a0ca4b31123152b93dbe1 (diff)
Merge pull request #116 from YamaArashi/master
Misc changes
Diffstat (limited to 'engine/town_map.asm')
-rwxr-xr-xengine/town_map.asm10
1 files changed, 7 insertions, 3 deletions
diff --git a/engine/town_map.asm b/engine/town_map.asm
index 225de2b8..8bf11358 100755
--- a/engine/town_map.asm
+++ b/engine/town_map.asm
@@ -444,8 +444,12 @@ WritePlayerOrBirdSpriteOAM: ; 7126d (1c:526d)
WriteTownMapSpriteOAM: ; 71279 (1c:5279)
push hl
+
+; Subtract 4 from c (X coord) and 4 from b (Y coord). However, the carry from c
+; is added to b, so the net result is that only 3 is subtracted from b.
lb hl, -4, -4
- add hl, bc ; subtract 4 from c (X coord) and 4 from b (Y coord)
+ add hl, bc
+
ld b, h
ld c, l
pop hl
@@ -469,14 +473,14 @@ WriteAsymmetricMonPartySpriteOAM: ; 71281 (1c:5281)
xor a
ld [hli], a
inc d
- ld a, $8
+ ld a, 8
add c
ld c, a
dec e
jr nz, .innerLoop
pop bc
pop de
- ld a, $8
+ ld a, 8
add b
ld b, a
dec d