mirror of
https://github.com/jason-e/rngfix.git
synced 2025-12-07 02:18:32 +00:00
Small fix for old Slopefix logic setting
This commit is contained in:
parent
46cabbe2d6
commit
0e06cb0c81
@ -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.
|
// 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.
|
// 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.
|
// Make sure the ground is not level, otherwise a collision would do nothing important anyway.
|
||||||
if (nrm[2] == 1.0) return false;
|
if (nrm[2] == 1.0) return false;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user