1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 00:49:54 +00:00

Don't allow dialogue if player controls are disabled.

This commit is contained in:
scrawl 2013-02-16 16:26:40 +01:00
parent 910858c300
commit 7d918caa93

View file

@ -3,6 +3,7 @@
#include "../mwbase/environment.hpp"
#include "../mwbase/dialoguemanager.hpp"
#include "../mwbase/inputmanager.hpp"
namespace MWWorld
{
@ -10,6 +11,7 @@ namespace MWWorld
void ActionTalk::executeImp (const Ptr& actor)
{
MWBase::Environment::get().getDialogueManager()->startDialogue (getTarget());
if (MWBase::Environment::get().getInputManager ()->getControlSwitch ("playercontrols"))
MWBase::Environment::get().getDialogueManager()->startDialogue (getTarget());
}
}