1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-19 20:23:54 +00:00

Add const to canRest()

This commit is contained in:
Sergey Fukanchik 2018-09-23 06:25:20 +03:00
parent f2e11e6def
commit f00f35ba86
3 changed files with 3 additions and 3 deletions

View file

@ -446,7 +446,7 @@ namespace MWBase
Rest_EnemiesAreNearby = 3
};
virtual RestPermitted canRest() = 0;
virtual RestPermitted canRest() const = 0;
///< check if the player is allowed to rest
/// \todo Probably shouldn't be here

View file

@ -2297,7 +2297,7 @@ namespace MWWorld
applyLoopingParticles(player);
}
World::RestPermitted World::canRest ()
World::RestPermitted World::canRest () const
{
CellStore *currentCell = mWorldScene->getCurrentCell();

View file

@ -551,7 +551,7 @@ namespace MWWorld
void enableActorCollision(const MWWorld::Ptr& actor, bool enable) override;
RestPermitted canRest() override;
RestPermitted canRest() const override;
///< check if the player is allowed to rest \n
/// 0 - yes \n
/// 1 - only waiting \n