forked from mirror/openmw-tes3mp
Merge pull request #1371 from akortunov/journalfix
Do not allow to use journal in a main menu
This commit is contained in:
commit
fe8437ae10
1 changed files with 1 additions and 0 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue