forked from mirror/openmw-tes3mp
Add parentheses to clarify calculations
This commit is contained in:
parent
f299f26720
commit
60a2625b89
1 changed files with 4 additions and 4 deletions
|
@ -171,10 +171,10 @@ void MWMechanics::Alchemy::updateEffects()
|
||||||
if (fPotionT1DurMult<=0)
|
if (fPotionT1DurMult<=0)
|
||||||
throw std::runtime_error ("invalid gmst: fPotionT1DurMult");
|
throw std::runtime_error ("invalid gmst: fPotionT1DurMult");
|
||||||
|
|
||||||
float magnitude = magicEffect->mData.mFlags & ESM::MagicEffect::NoMagnitude ?
|
float magnitude = (magicEffect->mData.mFlags & ESM::MagicEffect::NoMagnitude) ?
|
||||||
1 : (x / fPotionT1MagMul) / magicEffect->mData.mBaseCost;
|
1.0f : (x / fPotionT1MagMul) / magicEffect->mData.mBaseCost;
|
||||||
float duration = magicEffect->mData.mFlags & ESM::MagicEffect::NoDuration ?
|
float duration = (magicEffect->mData.mFlags & ESM::MagicEffect::NoDuration) ?
|
||||||
1 : (x / fPotionT1DurMult) / magicEffect->mData.mBaseCost;
|
1.0f : (x / fPotionT1DurMult) / magicEffect->mData.mBaseCost;
|
||||||
|
|
||||||
if (!(magicEffect->mData.mFlags & ESM::MagicEffect::NoMagnitude))
|
if (!(magicEffect->mData.mFlags & ESM::MagicEffect::NoMagnitude))
|
||||||
applyTools (magicEffect->mData.mFlags, magnitude);
|
applyTools (magicEffect->mData.mFlags, magnitude);
|
||||||
|
|
Loading…
Reference in a new issue