Skip to content

Commit

Permalink
Remove logged stats, lets use cURL
Browse files Browse the repository at this point in the history
Remove logged stats, lets use cURL
  • Loading branch information
SmileYzn committed Nov 7, 2022
1 parent 008bcdb commit 8a42113
Show file tree
Hide file tree
Showing 6 changed files with 195 additions and 214 deletions.
8 changes: 0 additions & 8 deletions PugMod/Cvars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@ void CCvars::Load()

// Allowed ban times in minutes (0 To ban permanently)
this->m_BanTimes = this->Register("pug_ban_times", "0 5 10 15 30 45 60 120");

// Log stats at match end
this->m_LogStats = this->Register("pug_log_stats", "0");
}

cvar_t* CCvars::Register(const char* Name, const char* Value)
Expand Down Expand Up @@ -314,8 +311,3 @@ cvar_t* CCvars::GetBanTimes()
{
return this->m_BanTimes;
}

cvar_t* CCvars::GetLogStats()
{
return this->m_LogStats;
}
2 changes: 0 additions & 2 deletions PugMod/Cvars.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class CCvars
cvar_t* GetHelpFileAdmin();
cvar_t* GetHelpFilePlayer();
cvar_t* GetBanTimes();
cvar_t* GetLogStats();

private:
cvar_t* m_Config[8];
Expand Down Expand Up @@ -76,7 +75,6 @@ class CCvars
cvar_t* m_HelpFileAdmin;
cvar_t* m_HelpFilePlayer;
cvar_t* m_BanTimes;
cvar_t* m_LogStats;
};

extern CCvars gCvars;
2 changes: 0 additions & 2 deletions PugMod/PugMod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ void CPugMod::SetState(int State)
gCvars.GetVoteMap()->value = 1;

this->NextState(5.0f);

gStats.LogStats();

break;
}
Expand Down
Loading

0 comments on commit 8a42113

Please sign in to comment.