diff options
Diffstat (limited to 'NorthstarDedicatedTest/host.cpp')
-rw-r--r-- | NorthstarDedicatedTest/host.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/host.cpp b/NorthstarDedicatedTest/host.cpp index 5f56be4e..624809b5 100644 --- a/NorthstarDedicatedTest/host.cpp +++ b/NorthstarDedicatedTest/host.cpp @@ -3,6 +3,8 @@ #include "convar.h" #include "modmanager.h" #include "gameutils.h" +#include "commandprint.h" +#include "mapsprint.h" typedef void (*Host_InitType)(bool bDedicated); Host_InitType Host_Init; @@ -46,6 +48,10 @@ void Host_InitHook(bool bDedicated) // make servers able to run disconnect on clients g_pCVar->FindCommand("disconnect")->m_nFlags |= FCVAR_SERVER_CAN_EXECUTE; + // need to initialise these after host_init since they do stuff to preexisting concommands/convars + InitialiseCommandPrint(); + InitialiseMapsPrint(); + // run client autoexec if on client if (!bDedicated) Cbuf_AddText(Cbuf_GetCurrentPlayer(), "exec autoexec_ns_client", cmd_source_t::kCommandSrcCode); |