summaryrefslogtreecommitdiff
path: root/src/code/z_actor.c
diff options
context:
space:
mode:
authorengineer124 <47598039+engineer124@users.noreply.github.com>2023-11-20 03:17:31 +1100
committerGitHub <noreply@github.com>2023-11-19 11:17:31 -0500
commitaef0335681545718299ba3c0c0d63eddef840a11 (patch)
tree103dc945f3851896be8f0f878d8167408521f3ce /src/code/z_actor.c
parent3d1ee33d7b7799cd84c3bbe1fc8d4f69ec3f58d9 (diff)
Struct Returns (#1574)
* change args * PR Review * format
Diffstat (limited to 'src/code/z_actor.c')
-rw-r--r--src/code/z_actor.c23
1 files changed, 9 insertions, 14 deletions
diff --git a/src/code/z_actor.c b/src/code/z_actor.c
index e55fc95b0..7377bc9e8 100644
--- a/src/code/z_actor.c
+++ b/src/code/z_actor.c
@@ -1465,26 +1465,21 @@ void func_8002ED80(Actor* actor, PlayState* play, s32 flag) {
}
}
-PosRot* Actor_GetFocus(PosRot* dest, Actor* actor) {
- *dest = actor->focus;
-
- return dest;
+PosRot Actor_GetFocus(Actor* actor) {
+ return actor->focus;
}
-PosRot* Actor_GetWorld(PosRot* dest, Actor* actor) {
- *dest = actor->world;
-
- return dest;
+PosRot Actor_GetWorld(Actor* actor) {
+ return actor->world;
}
-PosRot* Actor_GetWorldPosShapeRot(PosRot* arg0, Actor* actor) {
- PosRot sp1C;
+PosRot Actor_GetWorldPosShapeRot(Actor* actor) {
+ PosRot worldPosRot;
- Math_Vec3f_Copy(&sp1C.pos, &actor->world.pos);
- sp1C.rot = actor->shape.rot;
- *arg0 = sp1C;
+ Math_Vec3f_Copy(&worldPosRot.pos, &actor->world.pos);
+ worldPosRot.rot = actor->shape.rot;
- return arg0;
+ return worldPosRot;
}
f32 func_8002EFC0(Actor* actor, Player* player, s16 arg2) {