diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2024-07-04 21:53:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-04 22:53:38 +0200 |
commit | 193ab4905664259cbb5035b0ec9b2cb3e0e6a994 (patch) | |
tree | d0a022523bf3eed03f6d0382ef24e95ac9a385c8 /primedev/server | |
parent | fc087d804464cc6cb12498e171248186eb7b7c26 (diff) | |
download | NorthstarLauncher-193ab4905664259cbb5035b0ec9b2cb3e0e6a994.tar.gz NorthstarLauncher-193ab4905664259cbb5035b0ec9b2cb3e0e6a994.zip |
Properly handle invalid cvar replications without blocking netmessage (#408)v1.26.0-rc1
Properly handle invalid cvar replications without blocking netmessage entirely and restore `ns_server_name` replication
Diffstat (limited to 'primedev/server')
-rw-r--r-- | primedev/server/serverpresence.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/primedev/server/serverpresence.cpp b/primedev/server/serverpresence.cpp index 509243f0..099f6e64 100644 --- a/primedev/server/serverpresence.cpp +++ b/primedev/server/serverpresence.cpp @@ -78,7 +78,7 @@ void ServerPresenceManager::CreateConVars() Cvar_ns_server_presence_update_rate = new ConVar( "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) { + Cvar_ns_server_name = new ConVar("ns_server_name", "Unnamed Northstar Server", FCVAR_GAMEDLL | FCVAR_REPLICATED, "This server's name", false, 0, false, 0, [](ConVar* cvar, const char* pOldValue, float flOldValue) { NOTE_UNUSED(cvar); NOTE_UNUSED(pOldValue); NOTE_UNUSED(flOldValue); @@ -88,7 +88,7 @@ void ServerPresenceManager::CreateConVars() Cvar_hostname->SetValue(g_pServerPresence->Cvar_ns_server_name->GetString()); }); - 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) { + Cvar_ns_server_desc = new ConVar("ns_server_desc", "Default server description", FCVAR_GAMEDLL | FCVAR_REPLICATED, "This server's description", false, 0, false, 0, [](ConVar* cvar, const char* pOldValue, float flOldValue) { NOTE_UNUSED(cvar); NOTE_UNUSED(pOldValue); NOTE_UNUSED(flOldValue); |