From: Des Date: Mon, 26 Aug 2024 23:17:07 +0000 (-0300) Subject: Don't save local record if we are just watching a demo. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=707ce6ae69bc10b350098d528ed382dbb0807994;p=xonotic%2Fxonotic-data.pk3dir.git Don't save local record if we are just watching a demo. --- diff --git a/qcsrc/common/gamemodes/gamemode/race/cl_race.qc b/qcsrc/common/gamemodes/gamemode/race/cl_race.qc index d0c3c0372..5ab7970a9 100644 --- a/qcsrc/common/gamemodes/gamemode/race/cl_race.qc +++ b/qcsrc/common/gamemodes/gamemode/race/cl_race.qc @@ -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) {