Skip to content

Commit

Permalink
Address issues
Browse files Browse the repository at this point in the history
  • Loading branch information
PsiLupan committed Feb 20, 2024
1 parent 5927e95 commit f1dc077
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/MSL/math_ppc.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#pragma cplusplus on
#endif

double log2(double x);
double exp2(double x);

extern inline float sqrtf(float x)
{
static const double _half = .5;
Expand Down
1 change: 1 addition & 0 deletions src/melee/ft/chara/ftCommon/ftCo_Damage.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@

#include <common_structs.h>
#include <math.h>
#include <math_ppc.h>
#include <placeholder.h>
#include <dolphin/mtx.h>
#include <dolphin/mtx/vec.h>
Expand Down
1 change: 1 addition & 0 deletions src/melee/ft/chara/ftCommon/ftCo_DownBound.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include <common_structs.h>
#include <math.h>
#include <math_ppc.h>
#include <placeholder.h>
#include <baselib/jobj.h>

Expand Down
1 change: 1 addition & 0 deletions src/melee/ft/chara/ftCommon/ftCo_FlyReflect.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include <common_structs.h>
#include <math.h>
#include <math_ppc.h>

#pragma force_active on

Expand Down
1 change: 1 addition & 0 deletions src/melee/ft/chara/ftCommon/ftCo_Guard.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

#include <common_structs.h>
#include <math.h>
#include <math_ppc.h>
#include <placeholder.h>
#include <baselib/gobj.h>
#include <baselib/jobj.h>
Expand Down
1 change: 1 addition & 0 deletions src/melee/ft/chara/ftCommon/ftCo_ThrownKirby.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include <common_structs.h>
#include <math.h>
#include <math_ppc.h>
#include <placeholder.h>
#include <baselib/gobj.h>
#include <baselib/jobj.h>
Expand Down
3 changes: 2 additions & 1 deletion src/melee/ft/chara/ftMario/ftMr_SpecialN.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "ft/types.h"
#include "ftCommon/ftCo_Wait.h"
#include "ftMario/types.h"
#include "it/items/it_27CF.h"
#include "it/items/itmariofireball.h"
#include "lb/lb_00B0.h"

Expand Down Expand Up @@ -112,7 +113,7 @@ void ftMr_SpecialN_ItemFireSpawn(HSD_GObj* gobj)
lb_8000B1CC(fp->parts[ftParts_8007500C(fp, FtPart_L1stNb)].joint, NULL,
&coords);
if (fp->kind == FTKIND_MARIO) {
it_8029B6F8(gobj, &coords, FtPart_RThumbNa, fp->facing_dir);
it_8029B6F8(gobj, &coords, It_Kind_Mario_Fire, fp->facing_dir);
efSync_Spawn(1146, gobj,
fp->parts[ftParts_8007500C(fp, FtPart_L1stNb)].joint,
&fp->facing_dir);
Expand Down

0 comments on commit f1dc077

Please sign in to comment.