- fixed use of Powerup.Strength in PowerInvisibility.

An integer division made the feature useless.
This commit is contained in:
Christoph Oelckers 2020-05-25 16:43:01 +02:00 committed by drfrag
parent bf6c2676c1
commit b731a0e2c4

View file

@ -569,7 +569,7 @@ class PowerInvisibility : Powerup
Super.DoEffect();
// Due to potential interference with other PowerInvisibility items
// the effect has to be refreshed each tic.
double ts = (Strength / 100) * (special1 + 1);
double ts = (Strength / 100.) * (special1 + 1);
if (ts > 1.) ts = 1.;
let newAlpha = clamp((1. - ts), 0., 1.);