summaryrefslogtreecommitdiff
path: root/src/math_util_2.c
diff options
context:
space:
mode:
authorTyler McGavran <tyler.taggerung@gmail.com>2023-08-04 17:05:13 -0400
committerGitHub <noreply@github.com>2023-08-04 15:05:13 -0600
commit87297bc3b482ae530988324bfc514292157c87a6 (patch)
tree47c1e6becd39a3db0c2474f7bc0e974c0e573465 /src/math_util_2.c
parent9d716d921ab6e48e09813636be8acbe77fb26669 (diff)
Lots of code_80071F00 matches (#347)
* Lots of code_80071F00 matches Also removed a bunch of fake variables related to the object list. Also gave names to some of the members of the object list type Signed-off-by: Taggerung <tyler.taggerung@email.com>
Diffstat (limited to 'src/math_util_2.c')
-rw-r--r--src/math_util_2.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/math_util_2.c b/src/math_util_2.c
index d873eb1b2..b05fb5857 100644
--- a/src/math_util_2.c
+++ b/src/math_util_2.c
@@ -817,18 +817,18 @@ void func_800427DC(s32 arg0, Mat4 arg1) {
sp2C = sins(temp_s0->unk_0B2[2]);
temp_f0 = coss(temp_s0->unk_0B2[2]);
- arg1[0][0] = temp_s0->unk_000 * ((sp30 * temp_f0) + (sp3C * sp34 * sp2C));
- arg1[1][0] = temp_s0->unk_000 * ((-sp30 * sp2C) + sp3C * sp34 * temp_f0);
- arg1[2][0] = temp_s0->unk_000 * (temp_f20 * sp34);
- arg1[3][0] = temp_s0->unk_004[0];
- arg1[0][1] = temp_s0->unk_000 * (temp_f20 * sp2C);
- arg1[1][1] = temp_s0->unk_000 * (temp_f20 * temp_f0);
- arg1[2][1] = temp_s0->unk_000 * -sp3C;
- arg1[3][1] = temp_s0->unk_004[1];
- arg1[0][2] = temp_s0->unk_000 * ((-sp34 * temp_f0) + (sp3C * sp30 * sp2C));
- arg1[1][2] = temp_s0->unk_000 * ((sp34 * sp2C) + (sp3C * sp30 * temp_f0));
- arg1[2][2] = temp_s0->unk_000 * (temp_f20 * sp30);
- arg1[3][2] = temp_s0->unk_004[2];
+ arg1[0][0] = temp_s0->sizeScaling * ((sp30 * temp_f0) + (sp3C * sp34 * sp2C));
+ arg1[1][0] = temp_s0->sizeScaling * ((-sp30 * sp2C) + sp3C * sp34 * temp_f0);
+ arg1[2][0] = temp_s0->sizeScaling * (temp_f20 * sp34);
+ arg1[3][0] = temp_s0->pos[0];
+ arg1[0][1] = temp_s0->sizeScaling * (temp_f20 * sp2C);
+ arg1[1][1] = temp_s0->sizeScaling * (temp_f20 * temp_f0);
+ arg1[2][1] = temp_s0->sizeScaling * -sp3C;
+ arg1[3][1] = temp_s0->pos[1];
+ arg1[0][2] = temp_s0->sizeScaling * ((-sp34 * temp_f0) + (sp3C * sp30 * sp2C));
+ arg1[1][2] = temp_s0->sizeScaling * ((sp34 * sp2C) + (sp3C * sp30 * temp_f0));
+ arg1[2][2] = temp_s0->sizeScaling * (temp_f20 * sp30);
+ arg1[3][2] = temp_s0->pos[2];
arg1[0][3] = 0.0f;
arg1[1][3] = 0.0f;
arg1[2][3] = 0.0f;