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

@ -2102,7 +2102,7 @@ Music_Volume: ; e89d2
; e89e1 ; e89e1
Music_TempoRelative: ; e89e1 Music_TempoRelative: ; e89e1
; set global tempo to current channel tempo +- param ; set global tempo to current channel tempo +/- param
; params: 1 signed ; params: 1 signed
call GetMusicByte call GetMusicByte
ld e, a ld e, a

View File

@ -121,8 +121,7 @@ __enum__ = 0
deco GEODUDE_DOLL deco GEODUDE_DOLL
deco MACHOP_DOLL deco MACHOP_DOLL
deco TENTACOOL_DOLL deco TENTACOOL_DOLL
NUM_NON_TROPHY_DECOS = __enum__
deco GOLD_TROPHY_DOLL deco GOLD_TROPHY_DOLL
deco SILVER_TROPHY_DOLL deco SILVER_TROPHY_DOLL
NUM_DECOS = __enum__ NUM_DECOS = __enum__
NUM_NON_TROPHY_DECOS = NUM_DECOS +- 2

View File

@ -112,7 +112,7 @@ ENDM
sine_wave: MACRO sine_wave: MACRO
x = 0 x = 0.0
rept \1 rept \1
dw (sin(x) + (sin(x) & $ff)) >> 8 ; round up dw (sin(x) + (sin(x) & $ff)) >> 8 ; round up
x = x + (32768.0 / \1) ; a circle has 65536.0 "degrees" x = x + (32768.0 / \1) ; a circle has 65536.0 "degrees"