mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 15:06:42 +00:00
[Client] Prevent NPC subtitles from being added to open Dialogue window
This commit is contained in:
parent
bcdbecf608
commit
8b4e167efe
2 changed files with 12 additions and 3 deletions
|
@ -654,8 +654,17 @@ namespace MWDialogue
|
||||||
if(info != NULL)
|
if(info != NULL)
|
||||||
{
|
{
|
||||||
MWBase::WindowManager *winMgr = MWBase::Environment::get().getWindowManager();
|
MWBase::WindowManager *winMgr = MWBase::Environment::get().getWindowManager();
|
||||||
if(winMgr->getSubtitlesEnabled())
|
if (winMgr->getSubtitlesEnabled())
|
||||||
winMgr->messageBox(info->mResponse);
|
/*
|
||||||
|
Start of tes3mp change (minor)
|
||||||
|
|
||||||
|
Prevent subtitles for NPC sounds from being added to a currently open dialogue window,
|
||||||
|
which wasn't a problem in regular OpenMW because time was frozen during dialogue
|
||||||
|
*/
|
||||||
|
winMgr->messageBox(info->mResponse, MWGui::ShowInDialogueMode_Never);
|
||||||
|
/*
|
||||||
|
End of tes3mp change (minor)
|
||||||
|
*/
|
||||||
if (!info->mSound.empty())
|
if (!info->mSound.empty())
|
||||||
sndMgr->say(actor, info->mSound);
|
sndMgr->say(actor, info->mSound);
|
||||||
if (!info->mResultScript.empty())
|
if (!info->mResultScript.empty())
|
||||||
|
|
|
@ -138,7 +138,7 @@ void DedicatedActor::playSound()
|
||||||
|
|
||||||
MWBase::WindowManager *winMgr = MWBase::Environment::get().getWindowManager();
|
MWBase::WindowManager *winMgr = MWBase::Environment::get().getWindowManager();
|
||||||
if (winMgr->getSubtitlesEnabled())
|
if (winMgr->getSubtitlesEnabled())
|
||||||
winMgr->messageBox(response);
|
winMgr->messageBox(response, MWGui::ShowInDialogueMode_Never);
|
||||||
|
|
||||||
sound.clear();
|
sound.clear();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue