mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
Bugfix #778
This commit is contained in:
parent
9fee99d56c
commit
0539ca6a9c
@ -238,6 +238,7 @@ namespace MWBase
|
||||
|
||||
virtual void enableRest() = 0;
|
||||
virtual bool getRestEnabled() = 0;
|
||||
virtual bool getJournalAllowed() = 0;
|
||||
|
||||
virtual bool getPlayerSleeping() = 0;
|
||||
virtual void wakeUpPlayer() = 0;
|
||||
|
@ -180,6 +180,10 @@ namespace
|
||||
|
||||
void open()
|
||||
{
|
||||
if (!MWBase::Environment::get().getWindowManager ()->getJournalAllowed ())
|
||||
{
|
||||
MWBase::Environment::get().getWindowManager()->popGuiMode ();
|
||||
}
|
||||
mModel->load ();
|
||||
|
||||
setBookMode ();
|
||||
|
@ -226,6 +226,8 @@ namespace MWGui
|
||||
virtual void enableRest() { mRestAllowed = true; }
|
||||
virtual bool getRestEnabled();
|
||||
|
||||
virtual bool getJournalAllowed() { return (mAllowed & GW_Magic); }
|
||||
|
||||
virtual bool getPlayerSleeping();
|
||||
virtual void wakeUpPlayer();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user