From 1f6932071d2550e0b5906d0a9426c58aa7482606 Mon Sep 17 00:00:00 2001 From: Greyscale Date: Tue, 23 Jun 2009 22:31:48 -0700 Subject: [PATCH] Added logic check to stop if both jump multipliers are 1.0. (We are done with jump module for now, it works for me) --- src/zr/jumpboost.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/zr/jumpboost.inc b/src/zr/jumpboost.inc index 4d244e2..a46d3e5 100644 --- a/src/zr/jumpboost.inc +++ b/src/zr/jumpboost.inc @@ -36,6 +36,12 @@ JumpBoostOnClientJumpPost(client) new Float:distancemultiplier = ClassGetJumpDistance(client); new Float:heightmultiplier = ClassGetJumpHeight(client); + // If both are set to 1.0, then stop here to save some work. + if (distancemultiplier == 1.0 && heightmultiplier == 1.0) + { + return; + } + new Float:vecVelocity[3]; // Get client's current velocity.