]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/command/generic.qc
Sort most common includes alphabetically
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / command / generic.qc
index 3405ecd64ecc0bd772c42976eb17fbe1ba46ae2d..e354a9a5915e119cabef6b00f7424f7bd4c70b7b 100644 (file)
@@ -1,24 +1,24 @@
 #include "generic.qh"
-#include "_mod.qh"
-#include "reg.qh"
 
-#include "markup.qh"
-#include "rpn.qh"
-
-#include "../mapinfo.qh"
-
-#ifdef GAMEQC
-       #include "../notifications/all.qh"
-#endif
-
-#ifdef CSQC
-       #include <client/commands/cl_cmd.qh>
-#endif
-
-#ifdef SVQC
-       #include <server/command/_mod.qh>
+#if defined(CSQC)
+       #include <client/command/cl_cmd.qh>
+       #include <common/command/_mod.qh>
+       #include <common/command/markup.qh>
+       #include <common/command/reg.qh>
+       #include <common/command/rpn.qh>
+       #include <common/mapinfo.qh>
+       #include <common/notifications/all.qh>
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include <common/command/_mod.qh>
+       #include <common/command/markup.qh>
+       #include <common/command/reg.qh>
+       #include <common/command/rpn.qh>
+       #include <common/mapinfo.qh>
+       #include <common/notifications/all.qh>
        #include <common/turrets/config.qh>
        #include <common/weapons/config.qh>
+       #include <server/command/_mod.qh>
 #endif
 
 // =========================================================
@@ -86,7 +86,7 @@ void GenericCommand_addtolist(int request, int argc)
                }
 
                default:
-                       LOG_INFO("Incorrect parameters for ^2addtolist^7");
+                       LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0));
                case CMD_REQUEST_USAGE:
                {
                        LOG_HELP("Usage:^3 ", GetProgramCommandPrefix(), " addtolist variable value");
@@ -300,7 +300,7 @@ void GenericCommand_maplist(int request, int argc)
                }
 
                default:
-                       LOG_INFO("Incorrect parameters for ^2maplist^7");
+                       LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0));
                case CMD_REQUEST_USAGE:
                {
                        LOG_HELP("Usage:^3 ", GetProgramCommandPrefix(), " maplist action [map]");
@@ -356,7 +356,7 @@ void GenericCommand_removefromlist(int request, int argc)
                }
 
                default:
-                       LOG_INFO("Incorrect parameters for ^2removefromlist^7");
+                       LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0));
                case CMD_REQUEST_USAGE:
                {
                        LOG_HELP("Usage:^3 ", GetProgramCommandPrefix(), " removefromlist variable value");
@@ -444,7 +444,7 @@ void GenericCommand_settemp(int request, int argc)
                }
 
                default:
-                       LOG_INFO("Incorrect parameters for ^2settemp^7");
+                       LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0));
                case CMD_REQUEST_USAGE:
                {
                        LOG_HELP("Usage:^3 ", GetProgramCommandPrefix(), " settemp \"cvar\" \"arguments\"");