From ce0547aacbee20ac48e826b275174b6b6a611eea Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 6 May 2017 10:58:16 +0200 Subject: [PATCH] - fixed: The player speed factor was only retrieved from the topmost item in the inventory. --- wadsrc/static/zscript/shared/player.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wadsrc/static/zscript/shared/player.txt b/wadsrc/static/zscript/shared/player.txt index 380ffd2d8..b799f98c2 100644 --- a/wadsrc/static/zscript/shared/player.txt +++ b/wadsrc/static/zscript/shared/player.txt @@ -812,9 +812,13 @@ class PlayerPawn : Actor native side *= SideMove2; } - if (!player.morphTics && Inv != NULL) + if (!player.morphTics) { - double factor = Inv.GetSpeedFactor (); + double factor = 1.; + for(let it = Inv; it != null; it = it.Inv) + { + factor *= Inv.GetSpeedFactor (); + } forward *= factor; side *= factor; }