aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/host.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDedicatedTest/host.cpp')
-rw-r--r--NorthstarDedicatedTest/host.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/host.cpp b/NorthstarDedicatedTest/host.cpp
index 6d57f585..5f56be4e 100644
--- a/NorthstarDedicatedTest/host.cpp
+++ b/NorthstarDedicatedTest/host.cpp
@@ -43,6 +43,9 @@ void Host_InitHook(bool bDedicated)
spdlog::info("Removed {} hidden/devonly cvar flags", iCvarsAltered);
+ // make servers able to run disconnect on clients
+ g_pCVar->FindCommand("disconnect")->m_nFlags |= FCVAR_SERVER_CAN_EXECUTE;
+
// run client autoexec if on client
if (!bDedicated)
Cbuf_AddText(Cbuf_GetCurrentPlayer(), "exec autoexec_ns_client", cmd_source_t::kCommandSrcCode);