AI Execute Fix - May as well not create the object either to save extra time.

actorid
Torben Carrington 12 years ago
parent feb180724c
commit 3b43ee751e

@ -29,9 +29,11 @@ namespace MWMechanics
calculateCreatureStatModifiers (ptr);
// AI
CreatureStats& creatureStats = MWWorld::Class::get (ptr).getCreatureStats (ptr);
if(!MWBase::Environment::get().getWindowManager()->isGuiMode())
{
CreatureStats& creatureStats = MWWorld::Class::get (ptr).getCreatureStats (ptr);
creatureStats.getAiSequence().execute (ptr);
}
}
void Actors::updateNpc (const MWWorld::Ptr& ptr, float duration, bool paused)

Loading…
Cancel
Save