mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-11 18:41:14 +00:00
Fixes
This commit is contained in:
parent
b49280c1bb
commit
323497f915
@ -120,6 +120,10 @@ void MxBackgroundAudioManager::FadeInPendingPresenter()
|
||||
|
||||
if (m_activePresenter == NULL) {
|
||||
if (m_pendingPresenter) {
|
||||
if (m_pendingPresenter->GetCurrentTickleState() <= MxPresenter::e_starting) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_pendingPresenter->IsEnabled()) {
|
||||
m_pendingPresenter->Enable(TRUE);
|
||||
m_pendingPresenter->SetTickleState(MxPresenter::e_streaming);
|
||||
@ -260,7 +264,8 @@ MxResult MxBackgroundAudioManager::PlayMusic(
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
if (m_action2.GetObjectId() == -1 && m_action1.GetObjectId() != p_action.GetObjectId()) {
|
||||
if (m_action2.GetObjectId() == -1 &&
|
||||
(m_action1.GetObjectId() != p_action.GetObjectId() || m_action1.GetAtomId() != p_action.GetAtomId())) {
|
||||
MxDSAction action;
|
||||
action.SetAtomId(GetCurrentAction().GetAtomId());
|
||||
action.SetObjectId(GetCurrentAction().GetObjectId());
|
||||
|
||||
@ -71,7 +71,10 @@ std::optional<MxResult> SiLoader::HandleStart(MxDSAction& p_action)
|
||||
action.SetUnknown24(p_action.GetUnknown24());
|
||||
action.SetNotificationObject(p_action.GetNotificationObject());
|
||||
action.SetOrigin(p_action.GetOrigin());
|
||||
return Start(&action);
|
||||
|
||||
MxResult result = Start(&action);
|
||||
p_action.SetUnknown24(action.GetUnknown24());
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
@ -119,7 +122,9 @@ std::optional<MxBool> SiLoader::HandleDelete(MxDSAction& p_action)
|
||||
action.SetUnknown24(p_action.GetUnknown24());
|
||||
action.SetNotificationObject(p_action.GetNotificationObject());
|
||||
action.SetOrigin(p_action.GetOrigin());
|
||||
|
||||
DeleteObject(action);
|
||||
p_action.SetUnknown24(action.GetUnknown24());
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user