]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/race.qc
Merge branch 'Mario/ctf_rankings' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / race.qc
index 48c8e32ae2b41d993aecaa2867ef1f743a1607c1..1550cd2a3a425070054ecb7e1f5b2d1fbbb6b405 100644 (file)
@@ -288,6 +288,12 @@ void race_setTime(string map, float t, string myuid, string mynetname, entity e,
                return;
        }
 
+       if(uid2name(myuid) == "^1Unregistered Player")
+       {
+               Send_Notification(NOTIF_ALL, NULL, MSG_INFO, INFO_RACE_NEW_MISSING_NAME, mynetname, t);
+               return;
+       }
+
        oldrec = race_readTime(GetMapname(), newpos);
        oldrec_holder = race_readName(GetMapname(), newpos);
 
@@ -364,7 +370,6 @@ void race_SendTime(entity e, float cp, float t, float tvalid)
                t += e.race_penalty_accumulator;
 
        t = TIME_ENCODE(t); // make integer
-       // adding just 0.4 so it rounds down in the .5 case (matching the timer display)
 
        if(tvalid)
        if(cp == race_timed_checkpoint) // finish line