Skip to content

Commit

Permalink
Update shavit-ssj.sp
Browse files Browse the repository at this point in the history
detect if timer running or not to prevent shitty results on segmented runs
  • Loading branch information
Nairdaa authored May 21, 2023
1 parent 62adddd commit cc81ac0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion shavit-ssj.sp
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,16 @@ public void Player_Jump(Event event, const char[] name, bool dontBroadcast)
return;
}

g_iJump[client]++;
if(Shavit_GetTimerStatus(client) != Timer_Running)
{
g_iJump[client]++;
}
else
{
g_iJump[client] = Shavit_GetClientJumps(client);
}



//bool shouldUpdateStats = false;
//bool printedStats = false;
Expand Down

0 comments on commit cc81ac0

Please sign in to comment.