diff options
author | Diegoisawesome <Diegoisawesome@users.noreply.github.com> | 2018-02-17 04:14:13 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-17 04:14:13 -0600 |
commit | bc90a4fc1d5b63ad26d5c43722ccfe9df7ed1e07 (patch) | |
tree | 101cf777ea827ff7e68069c5ad45822a629ea75c /include/global.h | |
parent | e2932a38ded59a6b794d10024498db718c0b0bb9 (diff) | |
parent | ebd88b36060e8958fbf5f3b2028629575c79a243 (diff) |
Merge pull request #215 from Diegoisawesome/intro
Decompile intro and credits
Diffstat (limited to 'include/global.h')
-rw-r--r-- | include/global.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h index 8c56c0a58..f88203c90 100644 --- a/include/global.h +++ b/include/global.h @@ -35,6 +35,12 @@ // Converts a number to Q4.12 fixed-point format #define Q_4_12(n) ((s16)((n) * 4096)) +// Converts a Q8.8 fixed-point format number to a regular integer +#define Q_8_8_TO_INT(n) ((int)((n) / 256)) + +// Converts a Q4.12 fixed-point format number to a regular integer +#define Q_4_12_TO_INT(n) ((int)((n) / 4096)) + #define PARTY_SIZE 6 #define POKEMON_NAME_LENGTH 10 |