]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - zone.c
Initial implementation of command flag system
[xonotic/darkplaces.git] / zone.c
diff --git a/zone.c b/zone.c
index 3313fa01a1f4f60d9882c17c129ba23c8af006f5..5a0c8987a0c3e2f184999aa0ed09e2ff46dc72bc 100644 (file)
--- a/zone.c
+++ b/zone.c
@@ -916,11 +916,8 @@ void Memory_Shutdown (void)
 
 void Memory_Init_Commands (void)
 {
-       Cmd_AddCommand(&cmd_client, "memstats", MemStats_f, "prints memory system statistics");
-       Cmd_AddCommand(&cmd_client, "memlist", MemList_f, "prints memory pool information (or if used as memlist 5 lists individual allocations of 5K or larger, 0 lists all allocations)");
-
-       Cmd_AddCommand(&cmd_server, "memstats", MemStats_f, "prints memory system statistics");
-       Cmd_AddCommand(&cmd_server, "memlist", MemList_f, "prints memory pool information (or if used as memlist 5 lists individual allocations of 5K or larger, 0 lists all allocations)");
+       Cmd_AddCommand(CMD_SHARED, "memstats", MemStats_f, "prints memory system statistics");
+       Cmd_AddCommand(CMD_SHARED, "memlist", MemList_f, "prints memory pool information (or if used as memlist 5 lists individual allocations of 5K or larger, 0 lists all allocations)");
 
        Cvar_RegisterVariable (&developer_memory);
        Cvar_RegisterVariable (&developer_memorydebug);