Skip to content

Commit

Permalink
Update shavit-wr.sp
Browse files Browse the repository at this point in the history
  • Loading branch information
rtldg authored Nov 16, 2024
1 parent 17e6011 commit 54c04a0
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions addons/sourcemod/scripting/shavit-wr.sp
Original file line number Diff line number Diff line change
Expand Up @@ -336,13 +336,14 @@ void ResetWRs()
{
gSM_WRNames.Clear();

any empty_cells[TRACKS_SIZE];
float fempty_cells[TRACKS_SIZE];
int iempty_cells[TRACKS_SIZE];

for(int i = 0; i < gI_Styles; i++)
{
gF_WRTime[i] = empty_cells;
gI_WRRecordID[i] = empty_cells;
gI_WRSteamID[i] = empty_cells;
gF_WRTime[i] = fempty_cells;
gI_WRRecordID[i] = iempty_cells;
gI_WRSteamID[i] = iempty_cells;
}
}

Expand Down Expand Up @@ -486,12 +487,13 @@ public void OnClientConnected(int client)

gB_LoadedCache[client] = false;

any empty_cells[TRACKS_SIZE];
float fempty_cells[TRACKS_SIZE];
int iempty_cells[TRACKS_SIZE];

for(int i = 0; i < gI_Styles; i++)
{
gF_PlayerRecord[client][i] = empty_cells;
gI_PlayerCompletion[client][i] = empty_cells;
gF_PlayerRecord[client][i] = fempty_cells;
gI_PlayerCompletion[client][i] = iempty_cells;
}
}

Expand Down

0 comments on commit 54c04a0

Please sign in to comment.