mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 04:49:54 +00:00
Don't allow dialogue if player controls are disabled.
This commit is contained in:
parent
910858c300
commit
7d918caa93
1 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
#include "../mwbase/environment.hpp"
|
#include "../mwbase/environment.hpp"
|
||||||
#include "../mwbase/dialoguemanager.hpp"
|
#include "../mwbase/dialoguemanager.hpp"
|
||||||
|
#include "../mwbase/inputmanager.hpp"
|
||||||
|
|
||||||
namespace MWWorld
|
namespace MWWorld
|
||||||
{
|
{
|
||||||
|
@ -10,6 +11,7 @@ namespace MWWorld
|
||||||
|
|
||||||
void ActionTalk::executeImp (const Ptr& actor)
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue