mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-25 09:24:17 +00:00
Pad all single-digit hexadecimal values with zero (#504)
* Pad all single-digit hexadecimal values with zero * One more fix
This commit is contained in:
committed by
GitHub
parent
35def3013a
commit
bcdddd4c7e
@@ -342,7 +342,7 @@ MxResult HelicopterSubclass::FUN_100040a0(Vector4& p_v, float p_f)
|
||||
{
|
||||
MxU32 state = m_unk0x30;
|
||||
if (state == 1) {
|
||||
p_v.EqualsImpl(m_unk0x0.GetData());
|
||||
p_v.EqualsImpl(m_unk0x00.GetData());
|
||||
p_v[3] = acos(p_v[3]) * (1 - p_f) * 2.0;
|
||||
return p_v.NormalizeQuaternion();
|
||||
}
|
||||
@@ -352,7 +352,7 @@ MxResult HelicopterSubclass::FUN_100040a0(Vector4& p_v, float p_f)
|
||||
return p_v.NormalizeQuaternion();
|
||||
}
|
||||
else if (state == 3) {
|
||||
double d1 = p_v.Dot(&m_unk0x0, &m_unk0x18), d2;
|
||||
double d1 = p_v.Dot(&m_unk0x00, &m_unk0x18), d2;
|
||||
if (d1 + 1 > 0.00001) {
|
||||
if (1 - d1 > 0.00001) {
|
||||
double d = acos(d1);
|
||||
@@ -365,18 +365,18 @@ MxResult HelicopterSubclass::FUN_100040a0(Vector4& p_v, float p_f)
|
||||
d2 = p_f;
|
||||
}
|
||||
for (MxS32 i = 0; i < 4; i++) {
|
||||
p_v[i] = m_unk0x18[i] * d2 + m_unk0x0[i] * d1;
|
||||
p_v[i] = m_unk0x18[i] * d2 + m_unk0x00[i] * d1;
|
||||
}
|
||||
return SUCCESS;
|
||||
}
|
||||
p_v[0] = -m_unk0x0[1];
|
||||
p_v[1] = m_unk0x0[1];
|
||||
p_v[2] = -m_unk0x0[3];
|
||||
p_v[3] = m_unk0x0[2];
|
||||
p_v[0] = -m_unk0x00[1];
|
||||
p_v[1] = m_unk0x00[1];
|
||||
p_v[2] = -m_unk0x00[3];
|
||||
p_v[3] = m_unk0x00[2];
|
||||
d1 = sin((1 - p_f) * 1.570796326794895);
|
||||
d2 = sin(p_f * 1.570796326794895);
|
||||
for (MxS32 i = 0; i < 3; i++) {
|
||||
p_v[i] = m_unk0x0[i] * d1 + p_v[i] * d2;
|
||||
p_v[i] = m_unk0x00[i] * d1 + p_v[i] * d2;
|
||||
}
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include "decomp.h"
|
||||
|
||||
DECOMP_SIZE_ASSERT(LegoVehicleBuildState, 0x50); // 1000acd7
|
||||
DECOMP_SIZE_ASSERT(LegoVehicleBuildState::UnkStruct, 0xc);
|
||||
DECOMP_SIZE_ASSERT(LegoVehicleBuildState::UnkStruct, 0x0c);
|
||||
|
||||
// FUNCTION: LEGO1 0x10017c00
|
||||
LegoVehicleBuildState::UnkStruct::UnkStruct()
|
||||
|
||||
Reference in New Issue
Block a user