1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-30 16:20:21 +00:00

Do not allow to use quick keys during chargen

This commit is contained in:
Andrei Kortunov 2019-09-19 23:03:29 +04:00
parent 1bddbbcfa0
commit 7cb6a9c1e9

View File

@ -1312,6 +1312,9 @@ namespace MWInput
if (!checkAllowedToUseItems())
return;
if (MWBase::Environment::get().getWorld()->getGlobalFloat ("chargenstate")!=-1)
return;
if (!MWBase::Environment::get().getWindowManager()->isGuiMode())
MWBase::Environment::get().getWindowManager()->activateQuickKey (index);
}