1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-17 10:21:11 +00:00

Don't use base invisibility magnitude for setting alpha (Fixes #3555)

This commit is contained in:
MiroslavR 2016-09-19 00:05:50 +02:00
parent cd4b182091
commit 744667e163

View File

@ -2167,7 +2167,7 @@ void CharacterController::updateMagicEffects()
if (!mPtr.getClass().isActor()) if (!mPtr.getClass().isActor())
return; return;
float alpha = 1.f; 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()) if (mPtr == getPlayer())
alpha = 0.4f; alpha = 0.4f;