aboutsummaryrefslogtreecommitdiffstats
path: root/macros/coords.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2025-06-30 12:47:22 -0400
committerGitHub <noreply@github.com>2025-06-30 12:47:22 -0400
commit56c405de09ce267c4cfbc68a15c37b2ff51c635a (patch)
tree47d25c237e9af824f7a57295a2d2e298b194a8e6 /macros/coords.asm
parentDistinguish single trainer pics section from Pokemon pics (diff)
downloadpokeyellow-56c405de09ce267c4cfbc68a15c37b2ff51c635a.tar.gz
pokeyellow-56c405de09ce267c4cfbc68a15c37b2ff51c635a.tar.xz
pokeyellow-56c405de09ce267c4cfbc68a15c37b2ff51c635a.zip
Replace hardware_constants.asm with hardware.inc (#511)
Diffstat (limited to 'macros/coords.asm')
-rw-r--r--macros/coords.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/macros/coords.asm b/macros/coords.asm
index 984073ed..6eccdec4 100644
--- a/macros/coords.asm
+++ b/macros/coords.asm
@@ -47,11 +47,11 @@ ENDM
MACRO bgcoord
; register, x, y[, origin]
- validate_coords \2, \3, BG_MAP_WIDTH, BG_MAP_HEIGHT
+ validate_coords \2, \3, TILEMAP_WIDTH, TILEMAP_HEIGHT
IF _NARG >= 4
- ld \1, (\3) * BG_MAP_WIDTH + (\2) + \4
+ ld \1, (\3) * TILEMAP_WIDTH + (\2) + \4
ELSE
- ld \1, (\3) * BG_MAP_WIDTH + (\2) + vBGMap0
+ ld \1, (\3) * TILEMAP_WIDTH + (\2) + vBGMap0
ENDC
ENDM