From 6444a7535cab2a4fd3b8c3ff1eafb89ba7c3ae24 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 25 May 2020 16:43:01 +0200 Subject: [PATCH] - fixed use of Powerup.Strength in PowerInvisibility. An integer division made the feature useless. --- wadsrc/static/zscript/actors/inventory/powerups.zs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/actors/inventory/powerups.zs b/wadsrc/static/zscript/actors/inventory/powerups.zs index 157fab1b227..f3fed4b7bc6 100644 --- a/wadsrc/static/zscript/actors/inventory/powerups.zs +++ b/wadsrc/static/zscript/actors/inventory/powerups.zs @@ -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.);