mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-15 18:39:51 +00:00
Don't complain about greetings with no sound
This commit is contained in:
parent
16f5f5862d
commit
f89c400305
@ -586,7 +586,8 @@ namespace MWDialogue
|
|||||||
MWBase::WindowManager *winMgr = MWBase::Environment::get().getWindowManager();
|
MWBase::WindowManager *winMgr = MWBase::Environment::get().getWindowManager();
|
||||||
if(winMgr->getSubtitlesEnabled())
|
if(winMgr->getSubtitlesEnabled())
|
||||||
winMgr->messageBox(info->mResponse);
|
winMgr->messageBox(info->mResponse);
|
||||||
sndMgr->say(actor, info->mSound);
|
if (!info->mSound.empty())
|
||||||
|
sndMgr->say(actor, info->mSound);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ struct DialInfo
|
|||||||
// Sound and text associated with this item
|
// Sound and text associated with this item
|
||||||
std::string mSound, mResponse;
|
std::string mSound, mResponse;
|
||||||
|
|
||||||
// Result script (uncomiled) to run whenever this dialog item is
|
// Result script (uncompiled) to run whenever this dialog item is
|
||||||
// selected
|
// selected
|
||||||
std::string mResultScript;
|
std::string mResultScript;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user