Skip to content
Snippets Groups Projects
Commit c1caf213 authored by toaster's avatar toaster
Browse files

Reccomended by MI: Dividing by the original friction value just so slopes with...

Reccomended by MI: Dividing by the original friction value just so slopes with normal friction don't behave differently between next and this branch.
parent 882622d2
No related branches found
No related tags found
No related merge requests found
...@@ -874,8 +874,8 @@ void P_ButteredSlope(mobj_t *mo) ...@@ -874,8 +874,8 @@ void P_ButteredSlope(mobj_t *mo)
// Let's get the gravity strength for the object... // Let's get the gravity strength for the object...
thrust = FixedMul(thrust, abs(P_GetMobjGravity(mo))); thrust = FixedMul(thrust, abs(P_GetMobjGravity(mo)));
// ... and its friction against the ground for good measure. // ... and its friction against the ground for good measure (divided by original friction to keep behaviour for normal slopes the same).
thrust = FixedMul(thrust, mo->friction); thrust = FixedMul(thrust, FixedDiv(mo->friction, ORIG_FRICTION));
P_Thrust(mo, mo->standingslope->xydirection, thrust); P_Thrust(mo, mo->standingslope->xydirection, thrust);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment