Merge pull request #50 from nekonomicon/slideonice

Fix infinite slide in multiplayer.
This commit is contained in:
Alibek Omarov 2018-02-15 19:47:57 +03:00 committed by GitHub
commit f1793248a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -3312,8 +3312,8 @@ void PM_Move( struct playermove_s *ppmove, int server )
pmove->flags &= ~FL_ONGROUND;
}
// In single player, reset friction after each movement to FrictionModifier Triggers work still.
if( !pmove->multiplayer && ( pmove->movetype == MOVETYPE_WALK ) )
// Reset friction after each movement to FrictionModifier Triggers work still.
if( pmove->movetype == MOVETYPE_WALK )
{
pmove->friction = 1.0f;
}