mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-25 22:10:41 -04:00
[Client] Prevent wildernessRestAllowed from affecting resting in beds
Use less confusing message when unable to rest because of wildernessRestAllowed.
This commit is contained in:
parent
5aac28b00f
commit
790cb63443
@ -154,9 +154,10 @@ namespace MWGui
|
|||||||
|
|
||||||
Prevent resting and waiting if they have been disabled by the server for the local player
|
Prevent resting and waiting if they have been disabled by the server for the local player
|
||||||
*/
|
*/
|
||||||
else if (canRest == MWBase::World::Rest_Allowed && !mwmp::Main::get().getLocalPlayer()->wildernessRestAllowed)
|
else if (canRest == MWBase::World::Rest_Allowed && !mwmp::Main::get().getLocalPlayer()->wildernessRestAllowed &&
|
||||||
|
!mwmp::Main::get().getLocalPlayer()->isUsingBed)
|
||||||
{
|
{
|
||||||
MWBase::Environment::get().getWindowManager()->messageBox("You are not allowed to rest in the wilderness.");
|
MWBase::Environment::get().getWindowManager()->messageBox("You are not allowed to rest without a bed.");
|
||||||
MWBase::Environment::get().getWindowManager()->popGuiMode();
|
MWBase::Environment::get().getWindowManager()->popGuiMode();
|
||||||
}
|
}
|
||||||
else if (canRest == MWBase::World::Rest_OnlyWaiting && !mwmp::Main::get().getLocalPlayer()->waitAllowed &&
|
else if (canRest == MWBase::World::Rest_OnlyWaiting && !mwmp::Main::get().getLocalPlayer()->waitAllowed &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user