diff options
author | dannye <corrnondacqb@yahoo.com> | 2015-07-14 02:16:19 -0500 |
---|---|---|
committer | dannye <corrnondacqb@yahoo.com> | 2015-07-14 02:16:19 -0500 |
commit | ef9e59101e10aed82184bd2fd063b1109e2e4f6a (patch) | |
tree | 2fb09fd06d2b7b960a3c0fda27e3ad9229c13a8f /engine/overworld | |
parent | e25a7148d0a78549de4f33fa72d519dcaf660e97 (diff) |
Use more screen dimension constants
Diffstat (limited to 'engine/overworld')
-rwxr-xr-x | engine/overworld/cinnabar_lab.asm | 2 | ||||
-rw-r--r-- | engine/overworld/movement.asm | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engine/overworld/cinnabar_lab.asm b/engine/overworld/cinnabar_lab.asm index e9bde496..3d39ad6b 100755 --- a/engine/overworld/cinnabar_lab.asm +++ b/engine/overworld/cinnabar_lab.asm @@ -103,7 +103,7 @@ Func_610c2: ; 610c2 (18:50c2) call GetItemName hlCoord 2, 2 ld a, [$ffdb] - ld bc, $28 + ld bc, SCREEN_WIDTH * 2 call AddNTimes ld de, wcd6d call PlaceString diff --git a/engine/overworld/movement.asm b/engine/overworld/movement.asm index 9854df61..0cbb7f1c 100644 --- a/engine/overworld/movement.asm +++ b/engine/overworld/movement.asm @@ -690,8 +690,8 @@ getTileSpriteStandsOn: ; 5207 (1:5207) ld a, [hl] ; c1x6: screen Y position srl a srl a - srl a ; screen X tile - add $14 ; screen X tile + 20 + srl a ; screen X tile + add SCREEN_WIDTH ; screen X tile + 20 ld d, $0 ld e, a hlCoord 0, 0 |