Skip to content

Commit

Permalink
Fix func_friction not working properly in multiplayer
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVanheer committed Mar 6, 2023
1 parent 840d119 commit 1d5610c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
### Bug fixes

* Fixed tripmines not detonating if placed on breakable and a save game is loaded [#192](https://github.com/SamVanheer/halflife-updated/issues/192) (Thanks forklift.mdl)
* Fixed func_friction not working properly in multiplayer (halflife issue [#1542](https://github.com/ValveSoftware/halflife/issues/1542)) (Thanks L453rh4wk)

## Changes in V1.0.0 Beta 014

Expand Down
4 changes: 2 additions & 2 deletions pm_shared/pm_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3406,8 +3406,8 @@ void PM_Move(struct playermove_s* ppmove, qboolean server)
pmove->flags &= ~FL_ONGROUND;
}

// In single player, reset friction after each movement to FrictionModifier Triggers work still.
if (0 == pmove->multiplayer && (pmove->movetype == MOVETYPE_WALK))
// Reset friction after each movement so FrictionModifier Triggers work still.
if (pmove->movetype == MOVETYPE_WALK)
{
pmove->friction = 1.0f;
}
Expand Down

0 comments on commit 1d5610c

Please sign in to comment.