Skip to content

Commit

Permalink
- fixed use of Powerup.Strength in PowerInvisibility.
Browse files Browse the repository at this point in the history
An integer division made the feature useless.
  • Loading branch information
coelckers committed May 25, 2020
1 parent c9b37f8 commit 6444a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/actors/inventory/powerups.zs
Expand Up @@ -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.);
Expand Down

0 comments on commit 6444a75

Please sign in to comment.