summaryrefslogtreecommitdiff
path: root/src/code
diff options
context:
space:
mode:
authorcadmic <cadmic24@gmail.com>2024-02-01 06:13:24 -0800
committerGitHub <noreply@github.com>2024-02-01 09:13:24 -0500
commit99fd784bc27aa14c062f203b25cf58a3f9f3e3ae (patch)
tree92efa6d630f5775d108986cb2d2ecb98c6c9c5c0 /src/code
parent593a86014c7eece92b0b60e7ff4311c38eb8b723 (diff)
Match sys_matrix.c (#1682)
Diffstat (limited to 'src/code')
-rw-r--r--src/code/sys_matrix.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/code/sys_matrix.c b/src/code/sys_matrix.c
index d6e4570ea..b90ddaad5 100644
--- a/src/code/sys_matrix.c
+++ b/src/code/sys_matrix.c
@@ -969,6 +969,7 @@ void Matrix_RotateAxis(f32 angle, Vec3f* axis, u8 mode) {
}
}
+#if OOT_DEBUG
MtxF* Matrix_CheckFloats(MtxF* mf, char* file, s32 line) {
s32 i, j;
@@ -989,20 +990,21 @@ MtxF* Matrix_CheckFloats(MtxF* mf, char* file, s32 line) {
return mf;
}
+#endif
void Matrix_SetTranslateUniformScaleMtxF(MtxF* mf, f32 scale, f32 translateX, f32 translateY, f32 translateZ) {
+ mf->xx = scale;
mf->yx = 0.0f;
mf->zx = 0.0f;
mf->wx = 0.0f;
mf->xy = 0.0f;
+ mf->yy = scale;
mf->zy = 0.0f;
mf->wy = 0.0f;
mf->xz = 0.0f;
mf->yz = 0.0f;
- mf->wz = 0.0f;
- mf->xx = scale;
- mf->yy = scale;
mf->zz = scale;
+ mf->wz = 0.0f;
mf->xw = translateX;
mf->yw = translateY;
mf->zw = translateZ;