]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't save local record if we are just watching a demo.
authorDes <xon@damianv.com.ar>
Mon, 26 Aug 2024 23:17:07 +0000 (20:17 -0300)
committerDes <xon@damianv.com.ar>
Mon, 26 Aug 2024 23:17:07 +0000 (20:17 -0300)
qcsrc/common/gamemodes/gamemode/race/cl_race.qc

index d0c3c03724d865f1a991858f435f1bb85de4b14e..5ab7970a95a97e4cbcfa3b192468e506bee7b4d6 100644 (file)
@@ -60,7 +60,7 @@ void HUD_Mod_Race(vector pos, vector mySize)
                rr = RACE_RECORD;
        float t = stof(db_get(ClientProgsDB, strcat(mi_shortname, rr, "time")));
 
-       if(score && (score < t || !t)) {
+       if(score && (score < t || !t) && !isdemo()) {
                db_put(ClientProgsDB, strcat(mi_shortname, rr, "time"), ftos(score));
                if(autocvar_cl_autodemo_delete_keeprecords)
                {