improved accuracy of call to LegoOmni::Create

This commit is contained in:
itsmattkc 2023-04-29 20:38:44 -07:00
parent bc56f56da9
commit 4570487067

View file

@ -249,9 +249,7 @@ BOOL Isle::setupLegoOmni()
char mediaPath[256]; char mediaPath[256];
GetProfileStringA("LEGO Island", "MediaPath", "", mediaPath, 256); GetProfileStringA("LEGO Island", "MediaPath", "", mediaPath, 256);
MxOmniCreateParam createParam(mediaPath, (struct HWND__ *) m_windowHandle, m_videoParam, MxOmniCreateFlags()); if (Lego()->Create(MxOmniCreateParam(mediaPath, (struct HWND__ *) m_windowHandle, m_videoParam, MxOmniCreateFlags())) != FAILURE) {
if (Lego()->Create(createParam) != FAILURE) {
VariableTable()->SetVariable("ACTOR_01", ""); VariableTable()->SetVariable("ACTOR_01", "");
TickleManager()->vtable1c(VideoManager(), 10); TickleManager()->vtable1c(VideoManager(), 10);
return TRUE; return TRUE;