mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 09:23:51 +00:00
[Client] Remove check of GM_RestBed GUI mode that no longer exists
This commit is contained in:
parent
4f1df7c0c5
commit
bed96e5a3d
1 changed files with 1 additions and 3 deletions
|
@ -25,9 +25,7 @@ namespace mwmp
|
||||||
if (MWBase::Environment::get().getWindowManager()->getMode() == MWGui::GM_Console && !player->consoleAllowed)
|
if (MWBase::Environment::get().getWindowManager()->getMode() == MWGui::GM_Console && !player->consoleAllowed)
|
||||||
MWBase::Environment::get().getWindowManager()->popGuiMode();
|
MWBase::Environment::get().getWindowManager()->popGuiMode();
|
||||||
else if (MWBase::Environment::get().getWindowManager()->getMode() == MWGui::GM_Rest &&
|
else if (MWBase::Environment::get().getWindowManager()->getMode() == MWGui::GM_Rest &&
|
||||||
(!player->wildernessRestAllowed || !player->waitAllowed))
|
(!player->bedRestAllowed || !player->wildernessRestAllowed || !player->waitAllowed))
|
||||||
MWBase::Environment::get().getWindowManager()->popGuiMode();
|
|
||||||
else if (MWBase::Environment::get().getWindowManager()->getMode() == MWGui::GM_RestBed && !player->bedRestAllowed)
|
|
||||||
MWBase::Environment::get().getWindowManager()->popGuiMode();
|
MWBase::Environment::get().getWindowManager()->popGuiMode();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue