diff options
| author | Anghelo Carvajal <angheloalf95@gmail.com> | 2024-06-25 15:17:03 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-25 15:17:03 -0400 |
| commit | 6541532abb5c03088ad67748bbb23965c654127e (patch) | |
| tree | 9d902764304a1612cb91640bf19f34842d882ef7 /src/code/z_lib.c | |
| parent | 0bb57352a52ba8fa3d361d2f88c2b9063fa71f62 (diff) | |
Add a `z64play.h` header (#1646)
* z64play.h
* Move macros, functions and variables to header
* cleanup
* Reduce needed headers on z_collision_check
* Change play functions to take PlayState
* Move `Actor_ProcessInitChain` to `ichain.h`
* format
* Update src/code/z_play.c
Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
* Add macros.h to sys_math3d.c
* Rename SequenceContext to SceneSequences
---------
Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
Diffstat (limited to 'src/code/z_lib.c')
| -rw-r--r-- | src/code/z_lib.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/code/z_lib.c b/src/code/z_lib.c index 648f56cff..8a494cf76 100644 --- a/src/code/z_lib.c +++ b/src/code/z_lib.c @@ -1,12 +1,11 @@ #include "z64lib.h" +#include "ichain.h" + +#include "libc64/qrand.h" #include "main.h" -#include "ichain.h" #include "sfx.h" -#include "z64actor.h" #include "z64game.h" -#include "functions.h" -#include "macros.h" void* Lib_MemCpy(void* dest, void* src, size_t size) { bcopy(src, dest, size); @@ -453,7 +452,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); |
