mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
AI Execution Fix - Preiovusly AiExecute was being called even when in a menu, this was not correct behavior.
This commit is contained in:
parent
5fac75845c
commit
feb180724c
@ -30,7 +30,8 @@ namespace MWMechanics
|
|||||||
|
|
||||||
// AI
|
// AI
|
||||||
CreatureStats& creatureStats = MWWorld::Class::get (ptr).getCreatureStats (ptr);
|
CreatureStats& creatureStats = MWWorld::Class::get (ptr).getCreatureStats (ptr);
|
||||||
creatureStats.getAiSequence().execute (ptr);
|
if(!MWBase::Environment::get().getWindowManager()->isGuiMode())
|
||||||
|
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…
x
Reference in New Issue
Block a user