From: Mario Date: Tue, 16 May 2017 23:52:35 +0000 (+1000) Subject: Use race_ReadTime to acquire the first place record when checking if a map is 'new... X-Git-Tag: xonotic-v0.8.5~2780 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=058190efa513bb404b1b98ea4b565f3447842bf4;p=xonotic%2Fxonotic-data.pk3dir.git Use race_ReadTime to acquire the first place record when checking if a map is 'new' (fixes the new maps marker) --- diff --git a/qcsrc/server/command/getreplies.qc b/qcsrc/server/command/getreplies.qc index 2fafc358c..cfcadf445 100644 --- a/qcsrc/server/command/getreplies.qc +++ b/qcsrc/server/command/getreplies.qc @@ -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*";