Disable quick keys when fighting and spellcasting are disabled (bug #4962)

pull/2322/head
terabyte25 5 years ago committed by Alexei Dobrohotov
parent f4e113e7c1
commit 27292ef4a3

@ -60,6 +60,7 @@
Bug #4963: Enchant skill progress is incorrect
Bug #4965: Global light attenuation settings setup is lacking
Bug #4969: "Miss" sound plays for any actor
Bug #4972: Player is able to use quickkeys while disableplayerfighting is active
Feature #2229: Improve pathfinding AI
Feature #3442: Default values for fallbacks from ini file
Feature #3610: Option to invert X axis

@ -1333,7 +1333,7 @@ namespace MWInput
void InputManager::quickKey (int index)
{
if (!mControlSwitch["playercontrols"])
if (!mControlSwitch["playercontrols"] || !mControlSwitch["playerfighting"] || !mControlSwitch["playermagic"])
return;
if (!checkAllowedToUseItems())
return;

Loading…
Cancel
Save