Browse Source

Merge pull request #50 from nekonomicon/slideonice

Fix infinite slide in multiplayer.
caseclosed
Alibek Omarov 7 years ago committed by GitHub
parent
commit
f1793248a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      pm_shared/pm_shared.c

4
pm_shared/pm_shared.c

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

Loading…
Cancel
Save