forked from mirror/openmw-tes3mp
Use the playermagic and playerfighting control switches
This commit is contained in:
parent
e9bd43e2da
commit
c0fbcf413f
1 changed files with 2 additions and 2 deletions
|
@ -676,7 +676,7 @@ namespace MWInput
|
|||
if (MWBase::Environment::get().getWindowManager()->isGuiMode()) return;
|
||||
|
||||
// Not allowed before the magic window is accessible
|
||||
if (!MWBase::Environment::get().getWindowManager()->isAllowed(MWGui::GW_Magic))
|
||||
if (!mControlSwitch["playermagic"])
|
||||
return;
|
||||
|
||||
MWMechanics::DrawState_ state = mPlayer->getDrawState();
|
||||
|
@ -691,7 +691,7 @@ namespace MWInput
|
|||
if (MWBase::Environment::get().getWindowManager()->isGuiMode()) return;
|
||||
|
||||
// Not allowed before the inventory window is accessible
|
||||
if (!MWBase::Environment::get().getWindowManager()->isAllowed(MWGui::GW_Inventory))
|
||||
if (!mControlSwitch["playerfighting"])
|
||||
return;
|
||||
|
||||
MWMechanics::DrawState_ state = mPlayer->getDrawState();
|
||||
|
|
Loading…
Reference in a new issue