mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Don't allow dialogue if player controls are disabled.
This commit is contained in:
parent
910858c300
commit
7d918caa93
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user