Move player friction reset after movement code
This commit is contained in:
1 parent
b92d3dd7ae
commit
332369a910
2 files changed
+1
-2
No files matched your search
@@ -1120,8 +1120,6 @@ static void P_XYFriction(mobj_t *mo, fixed_t oldx, fixed_t oldy)
|
||||
mo->momx = FixedMul(mo->momx, mo->friction);
|
||||
mo->momy = FixedMul(mo->momy, mo->friction);
|
||||
}
|
||||
|
||||
mo->friction = ORIG_FRICTION;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -2120,6 +2120,7 @@ static void P_3dMovement(player_t *player)
|
||||
player->mo->momy = tempmomy + player->cmomy;
|
||||
}
|
||||
}
|
||||
player->mo->friction = ORIG_FRICTION; //katsy: reset player friction AFTER movement code
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user