]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Show diff with the best finish time even if g_cts_cptimes_onlyself is 1 morosophos/cptimes-onlyself
authorMorosophos <morosophos@teichisma.info>
Mon, 12 Oct 2020 17:31:03 +0000 (20:31 +0300)
committerMorosophos <morosophos@teichisma.info>
Mon, 12 Oct 2020 17:31:03 +0000 (20:31 +0300)
qcsrc/server/race.qc

index 047f74f6180419b62eb0b077447e81590899e176..235c59f2dfa8522991a56d75905796a71c0ec77c 100644 (file)
@@ -218,7 +218,7 @@ void race_SendNextCheckpoint(entity e, float spec) // qualifying only
         float myrecordtime = e.race_checkpoint_record[cp];
         float recordtime;
         string recordholder;
-        if (autocvar_g_cts_cptimes_onlyself) {
+        if (autocvar_g_cts_cptimes_onlyself && (race_CheckpointNetworkID(cp) < 254)) {  // cp 254 - start line, cp 255 - finish line
           recordtime = myrecordtime;
           recordholder = "";
         } else {
@@ -483,7 +483,7 @@ void race_SendTime(entity e, float cp, float t, float tvalid)
                if(tvalid)
                {
                         float myrecordtime = e.race_checkpoint_record[cp];
-                        if (autocvar_g_cts_cptimes_onlyself) {
+                        if (autocvar_g_cts_cptimes_onlyself && (race_CheckpointNetworkID(cp) < 254)) {  // cp 254 - start line, cp 255 - finish line
                           recordtime = myrecordtime;
                           recordholder = "";
                         } else {