mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 11:11:33 +00:00
fixed an enum
This commit is contained in:
parent
0e7ba008ad
commit
5f5addf052
1 changed files with 9 additions and 9 deletions
|
@ -442,7 +442,7 @@ namespace MWMechanics
|
|||
if (playerStats.hasCommonDisease() || playerStats.hasBlightDisease())
|
||||
x += MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>().find("fDispDiseaseMod")->getFloat();
|
||||
|
||||
if (playerNpcStats.getDrawState() == MWMechanics::DrawState_::DrawState_Weapon)
|
||||
if (playerNpcStats.getDrawState() == MWMechanics::DrawState_Weapon)
|
||||
x += MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>().find("fDispWeaponDrawn")->getFloat();
|
||||
|
||||
int effective_disposition = std::max(0,std::min(int(x),100));//, normally clamped to [0..100] when used
|
||||
|
|
Loading…
Reference in a new issue