rgbds supports 'X - 1' instead of 'X + -1'

This commit is contained in:
Rangi
2020-03-21 14:01:05 -04:00
parent 5a5f5ececd
commit 6a6ba10315
32 changed files with 47 additions and 47 deletions

View File

@@ -1796,16 +1796,16 @@ endr
hue = 31
rept 8
RGB hue, hue, hue
hue = hue + -1
hue = hue - 1
RGB hue, hue, hue
hue = hue + -2
hue = hue - 2
endr
.SlowFadePalettes:
hue = 31
rept 16
RGB hue, hue, hue
hue = hue + -1
hue = hue - 1
endr
Intro_LoadTilemap:

View File

@@ -339,7 +339,7 @@ EvolutionAnimation:
ld a, [hl]
or b
ld [hli], a ; attributes
rept SPRITEOAMSTRUCT_LENGTH + -1
rept SPRITEOAMSTRUCT_LENGTH - 1
inc hl
endr
dec c

View File

@@ -356,7 +356,7 @@ AnimateTitleCrystal:
ld a, [hl]
add 2
ld [hli], a ; y
rept SPRITEOAMSTRUCT_LENGTH + -1
rept SPRITEOAMSTRUCT_LENGTH - 1
inc hl
endr
dec c