mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
Don't allow the player to activate objects when dead
This commit is contained in:
parent
454d1ffaef
commit
db09858f59
@ -212,7 +212,7 @@ namespace MWWorld
|
||||
|
||||
MWWorld::Ptr player = getPlayer();
|
||||
const MWMechanics::NpcStats &playerStats = player.getClass().getNpcStats(player);
|
||||
if (playerStats.isParalyzed() || playerStats.getKnockedDown())
|
||||
if (playerStats.isParalyzed() || playerStats.getKnockedDown() || playerStats.isDead())
|
||||
return;
|
||||
|
||||
MWWorld::Ptr toActivate = MWBase::Environment::get().getWorld()->getFacedObject();
|
||||
|
Loading…
Reference in New Issue
Block a user