Skip to content

Commit

Permalink
Small fix for old Slopefix logic setting
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-e committed Oct 9, 2018
1 parent 46cabbe commit 0e06cb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin/scripting/rngfix.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0e06cb0

Please sign in to comment.