]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't save race times if player doesn't want tracking, even if we have uuid2name...
authorDes <xon@damianv.com.ar>
Wed, 14 Aug 2024 12:58:18 +0000 (09:58 -0300)
committerDes <xon@damianv.com.ar>
Wed, 14 Aug 2024 12:58:18 +0000 (09:58 -0300)
qcsrc/server/race.qc

index a799bff1d4eb79884ba9e8d66a93eb4f89b766b5..065bfefe936b15d5d3580f69388faa89e15ee0c2 100644 (file)
@@ -405,7 +405,8 @@ void race_setTime(string map, float t, string myuid, string mynetname, entity e,
                return;
        }
 
-       if(uid2name(myuid) == "^1Unregistered Player")
+       if(CS_CVAR(e).cvar_cl_allow_uidtracking != 1 || CS_CVAR(e).cvar_cl_allow_uid2name != 1
+          || uid2name(myuid) == "^1Unregistered Player")
        {
                if(showmessage)
                        Send_Notification(NOTIF_ALL, NULL, MSG_INFO, INFO_RACE_NEW_MISSING_NAME, mynetname, t);