- fixed: The player speed factor was only retrieved from the topmost item in the inventory.

This commit is contained in:
Christoph Oelckers 2017-05-06 10:58:16 +02:00
parent 567c21cdeb
commit ce0547aacb

View file

@ -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;
}