mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 15:02:01 +00:00
- fixed: The player speed factor was only retrieved from the topmost item in the inventory.
This commit is contained in:
parent
567c21cdeb
commit
ce0547aacb
1 changed files with 6 additions and 2 deletions
|
@ -812,9 +812,13 @@ class PlayerPawn : Actor native
|
||||||
side *= SideMove2;
|
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;
|
forward *= factor;
|
||||||
side *= factor;
|
side *= factor;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue