mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-11 21:10:50 +00:00
- fixed use of Powerup.Strength in PowerInvisibility.
An integer division made the feature useless.
This commit is contained in:
parent
bf6c2676c1
commit
b731a0e2c4
1 changed files with 1 additions and 1 deletions
|
@ -569,7 +569,7 @@ class PowerInvisibility : Powerup
|
||||||
Super.DoEffect();
|
Super.DoEffect();
|
||||||
// Due to potential interference with other PowerInvisibility items
|
// Due to potential interference with other PowerInvisibility items
|
||||||
// the effect has to be refreshed each tic.
|
// 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.;
|
if (ts > 1.) ts = 1.;
|
||||||
let newAlpha = clamp((1. - ts), 0., 1.);
|
let newAlpha = clamp((1. - ts), 0., 1.);
|
||||||
|
|
Loading…
Reference in a new issue