]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/race.qc
Merge branch 'morphed/newrl' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / race.qc
index 48c8e32ae2b41d993aecaa2867ef1f743a1607c1..d171dc6e03b4ef25780addc3b543e087da3405ed 100644 (file)
@@ -288,6 +288,13 @@ void race_setTime(string map, float t, string myuid, string mynetname, entity e,
                return;
        }
 
+       if(uid2name(myuid) == "^1Unregistered Player")
+       {
+               if(showmessage)
+                       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 +371,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
@@ -565,6 +571,9 @@ void dumpsurface(entity e)
 
 void checkpoint_passed(entity this, entity player)
 {
+       if(player.personal && autocvar_g_allow_checkpoints)
+               return; // practice mode!
+
        string oldmsg;
        entity cp;