mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue