diff options
| author | mzxrules <mzxrules@gmail.com> | 2024-06-19 00:00:23 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-19 00:00:23 -0400 |
| commit | 8d83727429602d422a524d00244f16f46ea8e70e (patch) | |
| tree | 0db634a792b3004792aa1e598def34543aac68ef /src/code/z_lib.c | |
| parent | 06bbdf88f1a38bec6300ce451b061522802e3371 (diff) | |
Experiment: remove global.h dependency from sys_math, sys_math3d, z_lib (#1956)
* split sys_math, sys_math3d, z_lib from global.h
* suggestions
* forgot this
* more math stuff
* nit fix
* re-add ichain.h
* resolve tharo's comments
Diffstat (limited to 'src/code/z_lib.c')
| -rw-r--r-- | src/code/z_lib.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/code/z_lib.c b/src/code/z_lib.c index 58a291162..5eba9346f 100644 --- a/src/code/z_lib.c +++ b/src/code/z_lib.c @@ -1,4 +1,11 @@ -#include "global.h" +#include "ultra64.h" +#include "z_lib.h" +#include "ichain.h" +#include "regs.h" +#include "macros.h" +#include "sys_math.h" +#include "rand.h" +#include "sfx.h" /** * memset: sets `len` bytes to `val` starting at address `dest`. @@ -334,7 +341,7 @@ void (*sInitChainHandlers[])(u8* ptr, InitChainEntry* ichain) = { IChain_Apply_Vec3f, IChain_Apply_Vec3fdiv1000, IChain_Apply_Vec3s, }; -void Actor_ProcessInitChain(Actor* actor, InitChainEntry* ichain) { +void Actor_ProcessInitChain(struct Actor* actor, InitChainEntry* ichain) { do { sInitChainHandlers[ichain->type]((u8*)actor, ichain); } while ((ichain++)->cont); |
