1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-12 00:40:23 +00:00

Don't complain about greetings with no sound

This commit is contained in:
scrawl 2014-01-22 00:02:43 +01:00
parent 16f5f5862d
commit f89c400305
2 changed files with 3 additions and 2 deletions

View File

@ -586,6 +586,7 @@ namespace MWDialogue
MWBase::WindowManager *winMgr = MWBase::Environment::get().getWindowManager();
if(winMgr->getSubtitlesEnabled())
winMgr->messageBox(info->mResponse);
if (!info->mSound.empty())
sndMgr->say(actor, info->mSound);
}
}

View File

@ -70,7 +70,7 @@ struct DialInfo
// Sound and text associated with this item
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
std::string mResultScript;