mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Don't run AI for knocked-out actors (Fixes #1854)
This commit is contained in:
parent
4859c94c72
commit
6fc53e73ad
@ -148,7 +148,8 @@ bool AiSequence::isPackageDone() const
|
||||
|
||||
void AiSequence::execute (const MWWorld::Ptr& actor,float duration)
|
||||
{
|
||||
if(actor != MWBase::Environment::get().getWorld()->getPlayerPtr())
|
||||
if(actor != MWBase::Environment::get().getWorld()->getPlayerPtr()
|
||||
&& !actor.getClass().getCreatureStats(actor).getKnockedDown())
|
||||
{
|
||||
if (!mPackages.empty())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user