mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 09:23:52 +00:00
Do not allow to use quick keys during chargen
This commit is contained in:
parent
1bddbbcfa0
commit
7cb6a9c1e9
1 changed files with 3 additions and 0 deletions
|
@ -1312,6 +1312,9 @@ namespace MWInput
|
||||||
if (!checkAllowedToUseItems())
|
if (!checkAllowedToUseItems())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (MWBase::Environment::get().getWorld()->getGlobalFloat ("chargenstate")!=-1)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!MWBase::Environment::get().getWindowManager()->isGuiMode())
|
if (!MWBase::Environment::get().getWindowManager()->isGuiMode())
|
||||||
MWBase::Environment::get().getWindowManager()->activateQuickKey (index);
|
MWBase::Environment::get().getWindowManager()->activateQuickKey (index);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue