summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-03-21 14:01:05 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-03-21 14:01:05 -0400
commit6a6ba10315baf4b0092c6d952a2f0cb502b6ac8e (patch)
tree5a32545646f9214cd7674320495cc3e8c6929875 /gfx
parent5a5f5ececdde2c4c62bdee649d8b1d3edba96fed (diff)
rgbds supports 'X - 1' instead of 'X + -1'
Diffstat (limited to 'gfx')
-rw-r--r--gfx/tileset_palette_maps.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/tileset_palette_maps.asm b/gfx/tileset_palette_maps.asm
index 110e48941..df751c311 100644
--- a/gfx/tileset_palette_maps.asm
+++ b/gfx/tileset_palette_maps.asm
@@ -2,7 +2,7 @@ tilepal: MACRO
; used in gfx/tilesets/*_palette_map.asm
; vram bank, pals
x = \1 << OAM_TILE_BANK
-rept (_NARG + -1) / 2
+rept (_NARG - 1) / 2
dn (x | PAL_BG_\3), (x | PAL_BG_\2)
shift
shift