Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
UnkFunc50.inc.c
Go to the documentation of this file.
1#include "common.h"
2#include "npc.h"
3
4API_CALLABLE(N(UnkFunc50)) {
5 f32 x = UNK_FUNC_50_LVar1 - script->varTable[0];
6 f32 z = UNK_FUNC_50_LVar2 - script->varTable[2];
7
8 script->varTable[3] = -sqrtf(SQ(x) + SQ(z));
9
10 return ApiStatus_DONE2;
11}
#define sqrtf
#define ApiStatus_DONE2
Definition evt.h:118
#define SQ(x)
Definition macros.h:166