mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-03 23:26:40 +00:00 
			
		
		
		
	Fix player being able to activate objects when knocked out
This commit is contained in:
		
							parent
							
								
									3912ee2b1d
								
							
						
					
					
						commit
						e73e975291
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -508,6 +508,10 @@ void OMW::Engine::activate()
 | 
				
			||||||
    if (MWBase::Environment::get().getWindowManager()->isGuiMode())
 | 
					    if (MWBase::Environment::get().getWindowManager()->isGuiMode())
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    MWWorld::Ptr player = MWBase::Environment::get().getWorld()->getPlayerPtr();
 | 
				
			||||||
 | 
					    if (player.getClass().getCreatureStats(player).getKnockedDown())
 | 
				
			||||||
 | 
					        return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    MWWorld::Ptr ptr = MWBase::Environment::get().getWorld()->getFacedObject();
 | 
					    MWWorld::Ptr ptr = MWBase::Environment::get().getWorld()->getFacedObject();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (ptr.isEmpty())
 | 
					    if (ptr.isEmpty())
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue