Added logic check to stop if both jump multipliers are 1.0. (We are done with jump module for now, it works for me)

This commit is contained in:
Greyscale 2009-06-23 22:31:48 -07:00
parent 3706b345be
commit 1f6932071d

View File

@ -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.