aboutsummaryrefslogtreecommitdiff
path: root/primedev/server
diff options
context:
space:
mode:
Diffstat (limited to 'primedev/server')
-rw-r--r--primedev/server/auth/bansystem.cpp1
-rw-r--r--primedev/server/auth/serverauthentication.cpp1
-rw-r--r--primedev/server/serverpresence.cpp9
-rw-r--r--primedev/server/serverpresence.h8
4 files changed, 15 insertions, 4 deletions
diff --git a/primedev/server/auth/bansystem.cpp b/primedev/server/auth/bansystem.cpp
index 59bb6067..20c07844 100644
--- a/primedev/server/auth/bansystem.cpp
+++ b/primedev/server/auth/bansystem.cpp
@@ -213,6 +213,7 @@ void ConCommand_unban(const CCommand& args)
void ConCommand_clearbanlist(const CCommand& args)
{
+ NOTE_UNUSED(args);
g_pBanSystem->ClearBanlist();
}
diff --git a/primedev/server/auth/serverauthentication.cpp b/primedev/server/auth/serverauthentication.cpp
index 7d656820..d0d4c698 100644
--- a/primedev/server/auth/serverauthentication.cpp
+++ b/primedev/server/auth/serverauthentication.cpp
@@ -333,6 +333,7 @@ void,, (CBaseClient* self, uint32_t unknownButAlways1, const char* pReason, ...)
void ConCommand_ns_resetpersistence(const CCommand& args)
{
+ NOTE_UNUSED(args);
if (*g_pServerState == server_state_t::ss_active)
{
spdlog::error("ns_resetpersistence must be entered from the main menu");
diff --git a/primedev/server/serverpresence.cpp b/primedev/server/serverpresence.cpp
index 159b9f30..509243f0 100644
--- a/primedev/server/serverpresence.cpp
+++ b/primedev/server/serverpresence.cpp
@@ -79,6 +79,9 @@ void ServerPresenceManager::CreateConVars()
"ns_server_presence_update_rate", "5000", FCVAR_GAMEDLL, "How often we update our server's presence on server lists in ms");
Cvar_ns_server_name = new ConVar("ns_server_name", "Unnamed Northstar Server", FCVAR_GAMEDLL, "This server's name", false, 0, false, 0, [](ConVar* cvar, const char* pOldValue, float flOldValue) {
+ NOTE_UNUSED(cvar);
+ NOTE_UNUSED(pOldValue);
+ NOTE_UNUSED(flOldValue);
g_pServerPresence->SetName(UnescapeUnicode(g_pServerPresence->Cvar_ns_server_name->GetString()));
// update engine hostname cvar
@@ -86,10 +89,16 @@ void ServerPresenceManager::CreateConVars()
});
Cvar_ns_server_desc = new ConVar("ns_server_desc", "Default server description", FCVAR_GAMEDLL, "This server's description", false, 0, false, 0, [](ConVar* cvar, const char* pOldValue, float flOldValue) {
+ NOTE_UNUSED(cvar);
+ NOTE_UNUSED(pOldValue);
+ NOTE_UNUSED(flOldValue);
g_pServerPresence->SetDescription(UnescapeUnicode(g_pServerPresence->Cvar_ns_server_desc->GetString()));
});
Cvar_ns_server_password = new ConVar("ns_server_password", "", FCVAR_GAMEDLL, "This server's password", false, 0, false, 0, [](ConVar* cvar, const char* pOldValue, float flOldValue) {
+ NOTE_UNUSED(cvar);
+ NOTE_UNUSED(pOldValue);
+ NOTE_UNUSED(flOldValue);
g_pServerPresence->SetPassword(g_pServerPresence->Cvar_ns_server_password->GetString());
});
diff --git a/primedev/server/serverpresence.h b/primedev/server/serverpresence.h
index c644cc37..94ecfe6a 100644
--- a/primedev/server/serverpresence.h
+++ b/primedev/server/serverpresence.h
@@ -45,10 +45,10 @@ public:
class ServerPresenceReporter
{
public:
- virtual void CreatePresence(const ServerPresence* pServerPresence) {}
- virtual void ReportPresence(const ServerPresence* pServerPresence) {}
- virtual void DestroyPresence(const ServerPresence* pServerPresence) {}
- virtual void RunFrame(double flCurrentTime, const ServerPresence* pServerPresence) {}
+ virtual void CreatePresence(const ServerPresence* /*pServerPresence*/) {}
+ virtual void ReportPresence(const ServerPresence* /*pServerPresence*/) {}
+ virtual void DestroyPresence(const ServerPresence* /*pServerPresence*/) {}
+ virtual void RunFrame(double /*flCurrentTime*/, const ServerPresence* /*pServerPresence*/) {}
};
class ServerPresenceManager