use "x + -1" not "x +- 1"

(TODO: use "x - 1" once rgbds allows it)
This commit is contained in:
Rangi
2018-02-02 22:55:38 -05:00
parent 45373ec601
commit e32e5212af
27 changed files with 36 additions and 37 deletions

View File

@@ -408,10 +408,10 @@ ValidateBTParty: ; 170394
ld a, [hl]
and a
x = $ff
rept ($ff +- NUM_POKEMON)
rept ($ff + -NUM_POKEMON)
jr z, .invalid
cp x
x = x +- 1
x = x + -1
endr
jr nz, .valid

View File

@@ -229,7 +229,7 @@ DetermineContestWinners: ; 1383e
CopyTempContestant: ; 138a0
; Could've just called CopyBytes.
ld de, wBugContestTempWinnerID
rept BUG_CONTESTANT_SIZE +- 1
rept BUG_CONTESTANT_SIZE + -1
ld a, [de]
inc de
ld [hli], a

View File

@@ -57,7 +57,7 @@ CelebiShrineEvent: ; 4989a
ld c, 4
.OAMloop:
ld [hli], a ; tile id
rept SPRITEOAMSTRUCT_LENGTH +- 1
rept SPRITEOAMSTRUCT_LENGTH + -1
inc hl
endr
inc a

View File

@@ -398,7 +398,7 @@ FlyToAnim: ; 8cb33
ld c, 4
.OAMloop
ld [hli], a ; tile id
rept SPRITEOAMSTRUCT_LENGTH +- 1
rept SPRITEOAMSTRUCT_LENGTH + -1
inc hl
endr
inc a

View File

@@ -98,10 +98,10 @@ RotateUnownFrontpic: ; e0000
overworldmaprect: MACRO
y = 0
rept \1
x = \1 * (\2 +- 1) + y
x = \1 * (\2 + -1) + y
rept \2
dw OverworldMap tile x
x = x +- \2
x = x + -\2
endr
y = y + 1
endr