mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 12:21:19 +00:00
Reccomended by MI: Dividing by the original friction value just so slopes with normal friction don't behave differently between next and this branch.
This commit is contained in:
parent
882622d2e7
commit
c1caf21323
1 changed files with 2 additions and 2 deletions
|
@ -874,8 +874,8 @@ void P_ButteredSlope(mobj_t *mo)
|
|||
// Let's get the gravity strength for the object...
|
||||
thrust = FixedMul(thrust, abs(P_GetMobjGravity(mo)));
|
||||
|
||||
// ... and its friction against the ground for good measure.
|
||||
thrust = FixedMul(thrust, mo->friction);
|
||||
// ... and its friction against the ground for good measure (divided by original friction to keep behaviour for normal slopes the same).
|
||||
thrust = FixedMul(thrust, FixedDiv(mo->friction, ORIG_FRICTION));
|
||||
|
||||
P_Thrust(mo, mo->standingslope->xydirection, thrust);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue