]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
Merge branch 'master' into Mario/ext_entityparam
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index 9404ac952bc06c350d75499708d67af5236bbecf..4930bf8b50007455c404f1543e2a738cd6ebe13e 100644 (file)
--- a/host.c
+++ b/host.c
@@ -1164,6 +1164,8 @@ void Host_UnlockSession(void)
        }
 }
 
+extern hook_t *csqc_concmd;
+
 /*
 ====================
 Host_Init
@@ -1231,6 +1233,8 @@ static void Host_Init (void)
        // initialize memory subsystem cvars/commands
        Memory_Init_Commands();
 
+       Hook_Init();
+       csqc_concmd = Hook_Register(csqc_concmd,CL_VM_ConsoleCommand,1);
        // initialize console and logging and its cvars/commands
        Con_Init();