]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
simplify version cmd using PROGNAME
authorMartin Taibr <taibr.martin@gmail.com>
Thu, 13 Feb 2020 18:08:00 +0000 (19:08 +0100)
committerMartin Taibr <taibr.martin@gmail.com>
Thu, 13 Feb 2020 18:08:00 +0000 (19:08 +0100)
qcsrc/common/debug.qh

index 3091aecdf394da3567137ade7dec90b8e92f5133..e5012f8cc1b8771a0b7d8f53225c59ef6b9308ae 100644 (file)
@@ -224,13 +224,7 @@ GENERIC_COMMAND(version, "Print the current version", false)
        {
                case CMD_REQUEST_COMMAND:
                {
-#if defined(CSQC)
-                       LOG_INFO("CSQC version: ", WATERMARK);
-#elif defined(SVQC)
-                       LOG_INFO("SVQC version: ", WATERMARK);
-#elif defined(MENUQC)
-                       LOG_INFO("MENUQC version: ", WATERMARK);
-#endif
+                       LOG_INFO(PROGNAME, " version: ", WATERMARK);
                        return;
                }
                default: