From 3dfef0fb069fa24384bfbde4c734e6eb1486d954 Mon Sep 17 00:00:00 2001 From: Morosophos Date: Mon, 12 Oct 2020 20:31:03 +0300 Subject: [PATCH] Show diff with the best finish time even if g_cts_cptimes_onlyself is 1 --- qcsrc/server/race.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/race.qc b/qcsrc/server/race.qc index 047f74f61..235c59f2d 100644 --- a/qcsrc/server/race.qc +++ b/qcsrc/server/race.qc @@ -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 { -- 2.39.2