]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use race_ReadTime to acquire the first place record when checking if a map is 'new...
authorMario <mario@smbclan.net>
Tue, 16 May 2017 23:52:35 +0000 (09:52 +1000)
committerMario <mario@smbclan.net>
Tue, 16 May 2017 23:52:35 +0000 (09:52 +1000)
qcsrc/server/command/getreplies.qc

index 2fafc358cf6b415527d6619535e0eeb58ac57b4c..cfcadf4456cb9652ea9239e4fdf4ca532229dee2 100644 (file)
@@ -259,11 +259,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*";