Introduce math.h

Makes fix for introducing 0.5 and 3.0 double constants into rels less hacky
This commit is contained in:
gamemasterplc 2023-12-06 15:13:41 -06:00
parent faf3b6d773
commit 79a78f4c5f
4 changed files with 46 additions and 9 deletions

View file

@ -3,9 +3,7 @@
#include "game/printfunc.h"
#include "dolphin/pad.h"
//HACK: Force 0.5 and 3.0 double constants to appear in REL
const double _half = 0.5;
const double _three = 3.0;
#include "math.h"
static void SubchrMain(void);

View file

@ -1,6 +1,8 @@
#include "include/REL/w10Dll.h"
#include "game/data.h"
#include "math.h"
//BSS
s16 lbl_1_bss_22[11];
s16 lbl_1_bss_20;
@ -58,11 +60,6 @@ s32 lbl_1_data_6C[2] = {
DATA_NUM_LISTEND
};
//RODATA
//HACK: Force 0.5 and 3.0 double constants to appear in REL
const double _half = 0.5;
const double _three = 3.0;
// function is probably global. only inlined in rels?
inline s32 get_current_board(void) {
return GWSystem.unk08 & 0x1F;