aboutsummaryrefslogtreecommitdiff
path: root/primedev/server/serverpresence.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'primedev/server/serverpresence.cpp')
-rw-r--r--primedev/server/serverpresence.cpp9
1 files changed, 9 insertions, 0 deletions
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());
});