From: Morosophos Date: Mon, 12 Oct 2020 17:31:03 +0000 (+0300) Subject: Show diff with the best finish time even if g_cts_cptimes_onlyself is 1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3dfef0fb069fa24384bfbde4c734e6eb1486d954;p=xonotic%2Fxonotic-data.pk3dir.git Show diff with the best finish time even if g_cts_cptimes_onlyself is 1 --- 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 {