From feb180724cb5a94ad856d1a2c8f0b71947cf0d8b Mon Sep 17 00:00:00 2001 From: Torben Carrington Date: Sun, 26 May 2013 19:33:45 -0700 Subject: [PATCH] AI Execution Fix - Preiovusly AiExecute was being called even when in a menu, this was not correct behavior. --- apps/openmw/mwmechanics/actors.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/actors.cpp b/apps/openmw/mwmechanics/actors.cpp index 00f2ac6fe..37bba6d3a 100644 --- a/apps/openmw/mwmechanics/actors.cpp +++ b/apps/openmw/mwmechanics/actors.cpp @@ -30,7 +30,8 @@ namespace MWMechanics // AI 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)