From 0e06cb0c81bea914e6ed97b84daa8eb4b2cd3887 Mon Sep 17 00:00:00 2001 From: rio Date: Mon, 8 Oct 2018 19:52:17 -0500 Subject: [PATCH] Small fix for old Slopefix logic setting --- plugin/scripting/rngfix.sp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/scripting/rngfix.sp b/plugin/scripting/rngfix.sp index 2227bf9..f6798fb 100644 --- a/plugin/scripting/rngfix.sp +++ b/plugin/scripting/rngfix.sp @@ -998,7 +998,9 @@ bool DoInclineCollisionFixes(int client, const float nrm[3]) // If a collision was predicted this tick (and wasn't prevented by another fix alrady), no fix is needed. // It's possible we actually have to run the edge bug fix and an incline fix in the same tick. - if (g_iLastCollisionTick[client] == g_iTick[client]) return false; + // If using the old Slopefix logic, do the fix regardless of necessity just like Slopefix + // so we can be sure to trigger a double boost if applicable. + if (g_iLastCollisionTick[client] == g_iTick[client] && !g_cvUseOldSlopefixLogic.BoolValue) return false; // Make sure the ground is not level, otherwise a collision would do nothing important anyway. if (nrm[2] == 1.0) return false;