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