You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
use "x + -1" not "x +- 1"
(TODO: use "x - 1" once rgbds allows it)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user