mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 19:53:53 +00:00
Fix tab characters
This commit is contained in:
parent
c50ee22772
commit
44bcd9b25f
2 changed files with 6 additions and 6 deletions
|
@ -120,14 +120,14 @@ namespace MWGui
|
|||
MWBase::Environment::get().getWindowManager()->popGuiMode ();
|
||||
}
|
||||
|
||||
MWBase::World::RestPermitted canRest = MWBase::Environment::get().getWorld ()->canRest ();
|
||||
MWBase::World::RestPermitted canRest = MWBase::Environment::get().getWorld ()->canRest ();
|
||||
|
||||
if (canRest == MWBase::World::Rest_EnemiesAreNearby)
|
||||
if (canRest == MWBase::World::Rest_EnemiesAreNearby)
|
||||
{
|
||||
MWBase::Environment::get().getWindowManager()->messageBox("#{sNotifyMessage2}");
|
||||
MWBase::Environment::get().getWindowManager()->popGuiMode ();
|
||||
}
|
||||
else if (canRest == MWBase::World::Rest_PlayerIsUnderwater)
|
||||
}
|
||||
else if (canRest == MWBase::World::Rest_PlayerIsUnderwater)
|
||||
{
|
||||
// resting underwater or mid-air not allowed
|
||||
MWBase::Environment::get().getWindowManager()->messageBox ("#{sNotifyMessage1}");
|
||||
|
|
|
@ -2309,8 +2309,8 @@ namespace MWWorld
|
|||
if (!actor)
|
||||
throw std::runtime_error("can't find player");
|
||||
|
||||
if(mPlayer->enemiesNearby())
|
||||
return Rest_EnemiesAreNearby;
|
||||
if(mPlayer->enemiesNearby())
|
||||
return Rest_EnemiesAreNearby;
|
||||
|
||||
if ((actor->getCollisionMode() && !mPhysics->isOnSolidGround(player)) || isUnderwater(currentCell, playerPos) || isWalkingOnWater(player))
|
||||
return Rest_PlayerIsUnderwater;
|
||||
|
|
Loading…
Reference in a new issue