From c8cdded81e2b7f73017be371083454e2b56dc884 Mon Sep 17 00:00:00 2001 From: Monster Iestyn Date: Thu, 5 May 2016 18:19:06 +0100 Subject: [PATCH] Multiply downwards thrust on slopes by the actual "gravity" variable. Also account for mobj scale (it affects gravity added in P_CheckGravity, so it makes sense here). --- src/p_slopes.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/p_slopes.c b/src/p_slopes.c index 797fe46b4..d8f2936b8 100644 --- a/src/p_slopes.c +++ b/src/p_slopes.c @@ -1133,7 +1133,9 @@ void P_ButteredSlope(mobj_t *mo) // This makes it harder to zigzag up steep slopes, as well as allows greater top speed when rolling down // Multiply by gravity - thrust = FixedMul(thrust, FRACUNIT/2); // TODO actually get this + thrust = FixedMul(thrust, gravity); // TODO account for per-sector gravity etc + // Multiply by scale (gravity strength depends on mobj scale) + thrust = FixedMul(thrust, mo->scale); P_Thrust(mo, mo->standingslope->xydirection, thrust); }