forked from teamnwah/openmw-tes3coop
Don't use base invisibility magnitude for setting alpha (Fixes #3555)
This commit is contained in:
parent
cd4b182091
commit
744667e163
1 changed files with 1 additions and 1 deletions
|
@ -2167,7 +2167,7 @@ void CharacterController::updateMagicEffects()
|
|||
if (!mPtr.getClass().isActor())
|
||||
return;
|
||||
float alpha = 1.f;
|
||||
if (mPtr.getClass().getCreatureStats(mPtr).getMagicEffects().get(ESM::MagicEffect::Invisibility).getMagnitude())
|
||||
if (mPtr.getClass().getCreatureStats(mPtr).getMagicEffects().get(ESM::MagicEffect::Invisibility).getModifier()) // Ignore base magnitude (see bug #3555).
|
||||
{
|
||||
if (mPtr == getPlayer())
|
||||
alpha = 0.4f;
|
||||
|
|
Loading…
Reference in a new issue