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:
1 parent
882622d2e7
commit
c1caf21323
1 file changed
+2
-2
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user