mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +00:00
AI Execute Fix - May as well not create the object either to save extra time.
This commit is contained in:
parent
feb180724c
commit
3b43ee751e
1 changed files with 3 additions and 1 deletions
|
@ -29,9 +29,11 @@ namespace MWMechanics
|
||||||
calculateCreatureStatModifiers (ptr);
|
calculateCreatureStatModifiers (ptr);
|
||||||
|
|
||||||
// AI
|
// AI
|
||||||
CreatureStats& creatureStats = MWWorld::Class::get (ptr).getCreatureStats (ptr);
|
|
||||||
if(!MWBase::Environment::get().getWindowManager()->isGuiMode())
|
if(!MWBase::Environment::get().getWindowManager()->isGuiMode())
|
||||||
|
{
|
||||||
|
CreatureStats& creatureStats = MWWorld::Class::get (ptr).getCreatureStats (ptr);
|
||||||
creatureStats.getAiSequence().execute (ptr);
|
creatureStats.getAiSequence().execute (ptr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Actors::updateNpc (const MWWorld::Ptr& ptr, float duration, bool paused)
|
void Actors::updateNpc (const MWWorld::Ptr& ptr, float duration, bool paused)
|
||||||
|
|
Loading…
Reference in a new issue