summaryrefslogtreecommitdiff
path: root/macros/data.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi@gmail.com>2020-12-08 14:33:46 -0500
committerRangi <remy.oukaour+rangi@gmail.com>2020-12-08 14:33:46 -0500
commit43286f43737fbaf9032182b85638da59634e67e7 (patch)
treef0e2075bb1b6a1e67ec6250a40dfcd3980aa8267 /macros/data.asm
parent2831f2e3fea69de9b19b4f7e9ecebac454614576 (diff)
Match pokegold's battle transition code more closely
Diffstat (limited to 'macros/data.asm')
-rw-r--r--macros/data.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/data.asm b/macros/data.asm
index 0c3723a..97eb568 100644
--- a/macros/data.asm
+++ b/macros/data.asm
@@ -123,7 +123,7 @@ sine_table: MACRO
; \1 samples of sin(x) from x=0 to x<32768 (pi radians)
x = 0
rept \1
- dw HIGH(sin(x) + LOW(sin(x))) ; round up
+ dw (sin(x) + LOW(sin(x))) >> 8 ; round up
x = x + DIV(32768, \1) ; a circle has 65536 "degrees"
endr
ENDM