]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/getreplies.qc
Hack the vote command parser to return an error code to avoid the incorrect 'invalid...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / getreplies.qc
index d01448aad81ca4d022f415c42d12759eebff606a..e67625a307caac26580d06c7491f3299f8f5e255 100644 (file)
@@ -1,4 +1,8 @@
 #include "getreplies.qh"
+
+#include <server/defs.qh>
+#include <server/miscfunctions.qh>
+
 #include <common/command/_mod.qh>
 #include "getreplies.qh"
 
@@ -259,11 +263,7 @@ string getlsmaps()
                                continue; // we still get the added count, but skip the actual processing
 
                        // todo: Check by play count of maps for other game types?
-                       if (
-                           (g_race && !stof(db_get(ServerProgsDB, strcat(MapInfo_Map_bspname, RACE_RECORD, "time"))))
-                           ||
-                           (g_cts && !stof(db_get(ServerProgsDB, strcat(MapInfo_Map_bspname, CTS_RECORD, "time"))))
-                          )
+                       if((g_race || g_cts) && !race_readTime(MapInfo_Map_bspname, 1))
                        {
                                newmaps = true;
                                if (i % 2) col = "^4*"; else col = "^5*";
@@ -288,7 +288,7 @@ string getmonsterlist()
 {
        string monsterlist = "";
 
-       FOREACH(Monsters, it != MON_Null,
+       FOREACH(Monsters, it != MON_Null && !(it.spawnflags & MON_FLAG_HIDDEN),
        {
                string col = ((i % 2) ? "^2" : "^3");
                monsterlist = sprintf("%s%s%s ", monsterlist, col, it.netname);