aboutsummaryrefslogtreecommitdiffstats
path: root/engine/town_map.asm
diff options
context:
space:
mode:
authorpikalaxalt <PikalaxALT@gmail.com>2016-06-11 20:37:15 -0400
committerpikalaxalt <PikalaxALT@gmail.com>2016-06-11 20:37:15 -0400
commitf5983c0f813d3d908b6016db3ed866e4ca9437dc (patch)
treed6888723f443557ce45c9a00d873caa5e7a8930e /engine/town_map.asm
parentCharacter dict; surfing minigame; printer debug (diff)
parentMore syncing with pokered (diff)
downloadpokeyellow-f5983c0f813d3d908b6016db3ed866e4ca9437dc.tar.gz
pokeyellow-f5983c0f813d3d908b6016db3ed866e4ca9437dc.tar.xz
pokeyellow-f5983c0f813d3d908b6016db3ed866e4ca9437dc.zip
Merge branch 'master' of github.com:pret/pokeyellow
Diffstat (limited to 'engine/town_map.asm')
-rwxr-xr-xengine/town_map.asm6
1 files changed, 5 insertions, 1 deletions
diff --git a/engine/town_map.asm b/engine/town_map.asm
index 82e24d75..47812db0 100755
--- a/engine/town_map.asm
+++ b/engine/town_map.asm
@@ -454,8 +454,12 @@ WritePlayerOrBirdSpriteOAM: ; 712f6 (1c:52f6)
WriteTownMapSpriteOAM: ; 71302 (1c:5302)
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