msys2 mingw compat (cannot pass reference of rvalue)

This commit is contained in:
Anonymous Maarten 2024-01-10 15:34:04 +01:00
parent bf34d20cea
commit a35f7e74cc
2 changed files with 14 additions and 0 deletions

View File

@ -39,7 +39,14 @@ void LegoActionControlPresenter::RepeatingTickle()
ParseExtra();
}
#ifdef COMPAT_MODE
{
MxAtomId atom(m_unk0x54.GetData(), LookupMode_LowerCase2);
InvokeAction(m_unk0x50, atom, m_unk0x64, NULL);
}
#else
InvokeAction(m_unk0x50, MxAtomId(m_unk0x54.GetData(), LookupMode_LowerCase2), m_unk0x64, NULL);
#endif
m_previousTickleStates |= 1 << (unsigned char) m_currentTickleState;
m_currentTickleState = TickleState_Done;
}

View File

@ -10,7 +10,14 @@ DECOMP_SIZE_ASSERT(LegoCameraController, 0xc8);
// FUNCTION: LEGO1 0x10011d50
LegoCameraController::LegoCameraController()
{
#ifdef COMPAT_MODE
Vector3Data at(0, 0, 0);
Vector3Data dir(0, 0, 1);
Vector3Data up(0, 1, 0);
SetWorldTransform(at, dir, up);
#else
SetWorldTransform(Vector3Data(0, 0, 0), Vector3Data(0, 0, 1), Vector3Data(0, 1, 0));
#endif
}
// FUNCTION: LEGO1 0x10011f70