Merge pull request #1371 from akortunov/journalfix

Do not allow to use journal in a main menu
This commit is contained in:
scrawl 2017-08-04 21:45:44 +00:00 committed by GitHub
commit fe8437ae10

View file

@ -1022,6 +1022,7 @@ namespace MWInput
return; return;
if(MWBase::Environment::get().getWindowManager()->getMode() != MWGui::GM_Journal if(MWBase::Environment::get().getWindowManager()->getMode() != MWGui::GM_Journal
&& MWBase::Environment::get().getWindowManager()->getMode() != MWGui::GM_MainMenu
&& MWBase::Environment::get().getWindowManager ()->getJournalAllowed()) && MWBase::Environment::get().getWindowManager ()->getJournalAllowed())
{ {
MWBase::Environment::get().getWindowManager()->playSound ("book open"); MWBase::Environment::get().getWindowManager()->playSound ("book open");