mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 00:26:39 +00:00 
			
		
		
		
	Add const to canRest()
This commit is contained in:
		
							parent
							
								
									f2e11e6def
								
							
						
					
					
						commit
						f00f35ba86
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2297,7 +2297,7 @@ namespace MWWorld
 | 
			
		|||
        applyLoopingParticles(player);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    World::RestPermitted World::canRest ()
 | 
			
		||||
    World::RestPermitted World::canRest () const
 | 
			
		||||
    {
 | 
			
		||||
        CellStore *currentCell = mWorldScene->getCurrentCell();
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue