mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Interpret Act3List properties, minor fixes (#1619)
Co-authored-by: jonschz <jonschz@users.noreply.github.com>
This commit is contained in:
@@ -518,26 +518,36 @@ LegoOmni::World LegoOmni::GetWorldId(const char* p_key)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x1005b4f0
|
||||
// FUNCTION: BETA10 0x1008eeec
|
||||
void LegoOmni::Disable(MxBool p_disable, MxU16 p_flags)
|
||||
{
|
||||
if (p_disable) {
|
||||
if (p_flags & c_disableInput) {
|
||||
m_inputManager->DisableInputProcessing();
|
||||
}
|
||||
#ifdef BETA10
|
||||
if (this->m_paused != p_disable) {
|
||||
// This is probably a different variable, but this code was mostly added for structural matching
|
||||
m_paused = p_disable;
|
||||
#endif
|
||||
|
||||
if (p_flags & c_disable3d) {
|
||||
((LegoVideoManager*) m_videoManager)->SetRender3D(FALSE);
|
||||
}
|
||||
if (p_disable) {
|
||||
if (p_flags & c_disableInput) {
|
||||
m_inputManager->DisableInputProcessing();
|
||||
}
|
||||
|
||||
if (p_flags & c_clearScreen) {
|
||||
m_videoManager->GetDisplaySurface()->ClearScreen();
|
||||
if (p_flags & c_disable3d) {
|
||||
((LegoVideoManager*) m_videoManager)->SetRender3D(FALSE);
|
||||
}
|
||||
|
||||
if (p_flags & c_clearScreen) {
|
||||
m_videoManager->GetDisplaySurface()->ClearScreen();
|
||||
}
|
||||
}
|
||||
else {
|
||||
m_inputManager->EnableInputProcessing();
|
||||
((LegoVideoManager*) m_videoManager)->SetRender3D(TRUE);
|
||||
((LegoVideoManager*) m_videoManager)->UpdateView(0, 0, 0, 0);
|
||||
}
|
||||
#ifdef BETA10
|
||||
}
|
||||
else {
|
||||
m_inputManager->EnableInputProcessing();
|
||||
((LegoVideoManager*) m_videoManager)->SetRender3D(TRUE);
|
||||
((LegoVideoManager*) m_videoManager)->UpdateView(0, 0, 0, 0);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x1005b560
|
||||
|
Reference in New Issue
Block a user