]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix some things in generic.qc
authorSamual <samual@xonotic.org>
Thu, 29 Dec 2011 00:32:13 +0000 (19:32 -0500)
committerSamual <samual@xonotic.org>
Thu, 29 Dec 2011 00:32:13 +0000 (19:32 -0500)
qcsrc/common/command/generic.qc

index 0d4d2f8c9309d8ddf2918bb98131abda16e50f63..29b5d77e0f131a5339b7ac74ce5507c5871ddacf 100644 (file)
@@ -68,34 +68,29 @@ void GenericCommand_dumpcommands(float request)
                        
                        if(fh >= 0)
                        {
-#ifdef SVQC
-                               
-                               // write sv_cmd aliases
-                               CMD_Write("dump of server console commands:\n");
-                               GameCommand_macro_write_aliases(fh);
-                               
-                               // write client only aliases
-                               CMD_Write("\ndump of networked client only commands:\n");
-                               ClientCommand_macro_write_aliases(fh);
-                               
-                               // write common aliases
-                               CMD_Write("\ndump of common commands:\n");
-                               CommonCommand_macro_write_aliases(fh);
+                               #ifdef SVQC
+                                       
+                                       CMD_Write("dump of server console commands:\n");
+                                       GameCommand_macro_write_aliases(fh);
+                                       
+                                       CMD_Write("\ndump of networked client only commands:\n");
+                                       ClientCommand_macro_write_aliases(fh);
+                                       
+                                       CMD_Write("\ndump of common commands:\n");
+                                       CommonCommand_macro_write_aliases(fh);
 
-                               // write ban aliases
-                               CMD_Write("\ndump of ban commands:\n");
-                               
-#endif
-                               
-#ifdef CSQC
-                               
-                               // write cl_cmd aliases
-                               CMD_Write("dump of client commands:\n");
-                               LocalCommand_macro_write_aliases(fh);
-                               
-#endif
+                                       CMD_Write("\ndump of ban commands:\n");
+                                       // todo
+                                       
+                               #endif
+                                                               
+                               #ifdef CSQC
+                                       
+                                       CMD_Write("dump of client commands:\n");
+                                       LocalCommand_macro_write_aliases(fh);
+                                       
+                               #endif
                                
-                               // write generic commands
                                CMD_Write("\ndump of generic commands:\n");
                                GenericCommand_macro_write_aliases(fh);
                                
@@ -300,7 +295,7 @@ void GenericCommand_(float request)
 void GenericCommand_macro_help()
 {
        #define GENERIC_COMMAND(name,function,description) \
-               { if(strtolower(description) != string_null) { print("  ^2", name, "^7: ", description, "\n"); } }
+               { print("  ^2", name, "^7: ", description, "\n"); }
                
        GENERIC_COMMANDS(0, 0, "")
        #undef GENERIC_COMMAND