]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/getreplies.qc
Merge branch 't0uYK8Ne/set_slick_friction' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / getreplies.qc
index 2fafc358cf6b415527d6619535e0eeb58ac57b4c..b768ccb7e8510355d99068660661fd901dd96054 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"
 
@@ -32,8 +36,9 @@ string getrecords(int page)  // 50 records per page
 
        MapInfo_ClearTemps();
 
-       if (s == "" && page == 0) return "No records are available on this server.\n";
-       else return s;
+       if (s == "" && page == 0)
+               return "No records are available on this server for the current game mode.\n";
+       return s;
 }
 
 string getrankings()
@@ -259,11 +264,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*";