Age | Commit message (Collapse) | Author |
|
|
|
|
|
This makes the table_width/assert_table_length usages unnecessary, and also keeps the labels automatically up to date if the length constants change.
|
|
|
|
It also uncovered some off-by-one issues with defining some constants.
A few structs now use rsreset/_RS to define their offset constants.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
anonymous jumptable labels
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Also commented the use of the field surrounding the struct
initialization functions.
SPRITEANIMSTRUCT_0C -> SPRITEANIMSTRUCT_VAR1
SPRITEANIMSTRUCT_0D -> SPRITEANIMSTRUCT_VAR2
SPRITEANIMSTRUCT_0E -> SPRITEANIMSTRUCT_VAR3
SPRITEANIMSTRUCT_0F -> SPRITEANIMSTRUCT_VAR4
BATTLEANIMSTRUCT_01 -> BATTLEANIMSTRUCT_OAMFLAGS
BATTLEANIMSTRUCT_ANON_JT_INDEX -> BATTLEANIMSTRUCT_JUMPTABLE_INDEX
BATTLEANIMSTRUCT_0F -> BATTLEANIMSTRUCT_VAR1
BATTLEANIMSTRUCT_10 -> BATTLEANIMSTRUCT_VAR2
|
|
|
|
implementations
|
|
|
|
|
|
|
|
|
|
A circle has 65536 "degrees", so 32768 "degrees" = pi radians = half a circle
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|