Skip to content

Commit

Permalink
maybe like that?
Browse files Browse the repository at this point in the history
  • Loading branch information
qawery-just-sad committed Jun 18, 2020
1 parent ef4f298 commit 36a1b55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/sourcemod/scripting/SurfTimer.sp
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,9 @@ char g_szRecordPlayer[MAX_NAME_LENGTH];
// Checks if the bot is new, if so, set weapon
bool g_bNewRecordBot;

// Old Map Record
float g_fOldRecordMapTime;

// Checks if the bot is new, if so, set weapon
bool g_bNewBonusBot;

Expand Down
2 changes: 2 additions & 0 deletions addons/sourcemod/scripting/surftimer/buttonpress.sp
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ public void CL_OnEndTimerPress(int client)
// If the server already has a record
if (g_MapTimesCount > 0)
{

g_fOldRecordMapTime = g_fRecordMapTime;
if (g_fFinalTime[client] < g_fRecordMapTime)
{
// New fastest time in map
Expand Down

0 comments on commit 36a1b55

Please sign in to comment.