rgbds supports 'X - 1' instead of 'X + -1'
This commit is contained in:
@@ -395,10 +395,10 @@ ValidateBTParty:
|
||||
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
|
||||
|
||||
|
Reference in New Issue
Block a user