1
0
Fork 1
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:
Torben Carrington 2013-05-26 19:54:59 -07:00
parent feb180724c
commit 3b43ee751e

View file

@ -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)