mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 08:31:45 +00:00
- fixed use of Powerup.Strength in PowerInvisibility.
An integer division made the feature useless.
This commit is contained in:
parent
c9b37f8320
commit
6444a7535c
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