diff options
| author | Derek Hensley <hensley.derek58@gmail.com> | 2024-01-28 16:27:50 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-28 21:27:50 -0300 |
| commit | db8f5f5ccc89304a28aa754087a6c2bf72e55717 (patch) | |
| tree | f158680a5e754db47b7df9b3692b7b8652b84fe0 /src/boot/O2 | |
| parent | 6a15ce9521484bf4a1da5b44435f92d8764722bf (diff) | |
General Cleanup 2 (#1538)
* Cleanup
* Cleanup variables.h
* Cleanup fault headers
* Some includes/headers cleanup
* Libultra btn wrappers
* Mark differences to original libultra headers
* Remove duplicate include in fault
* format
* Update include/PR/os_voice.h
Co-authored-by: Tom Overton <tom-overton@users.noreply.github.com>
* align
---------
Co-authored-by: Tom Overton <tom-overton@users.noreply.github.com>
Diffstat (limited to 'src/boot/O2')
| -rw-r--r-- | src/boot/O2/mtxuty-cvt.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/boot/O2/mtxuty-cvt.c b/src/boot/O2/mtxuty-cvt.c index a5da24522..f96de806f 100644 --- a/src/boot/O2/mtxuty-cvt.c +++ b/src/boot/O2/mtxuty-cvt.c @@ -7,9 +7,13 @@ void MtxConv_F2L(Mtx* mtx, MtxF* mf) { for (i = 0; i < 4; i++) { for (j = 0; j < 4; j++) { s32 value = (mf->mf[i][j] * 0x10000); + struct { + u16 intPart[4][4]; + u16 fracPart[4][4]; + }* mu = (void*)mtx; - mtx->intPart[i][j] = value >> 16; - mtx->fracPart[i][j] = value; + mu->intPart[i][j] = value >> 16; + mu->fracPart[i][j] = value; } } } |
