Skip to content

Commit

Permalink
Merge pull request #380 from zer0k-z/patch-1
Browse files Browse the repository at this point in the history
Initialize checkpointCount upon client connect
  • Loading branch information
zealain authored Oct 7, 2022
2 parents ac37242 + d05767b commit 3fb2f7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/sourcemod/scripting/gokz-core/teleports.sp
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,7 @@ bool CanUndoTeleport(int client, bool showError = false)

void OnClientPutInServer_Teleports(int client)
{
checkpointCount[client] = 0;
checkpointIndex[client] = -1;
checkpointIndexStart[client] = -1;
checkpointIndexEnd[client] = -1;
Expand Down Expand Up @@ -909,4 +910,4 @@ static void CheckpointTeleportDo(int client)
{
SetPausedOnLadder(client, false);
}
}
}

0 comments on commit 3fb2f7f

Please sign in to comment.