From 42c955bde68795ce2d221fb2f62507d388a526eb Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 17 Jul 2017 04:25:42 +1000 Subject: [PATCH] Set new personal time before updating regular time --- qcsrc/server/race.qc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/race.qc b/qcsrc/server/race.qc index 594740339..0654c5dc7 100644 --- a/qcsrc/server/race.qc +++ b/qcsrc/server/race.qc @@ -432,6 +432,9 @@ void race_SendTime(entity e, float cp, float t, float tvalid) race_setTime(GetMapname(), t, e.crypto_idfp, e.netname, e, true); MUTATOR_CALLHOOK(Race_FinalCheckpoint, e); } + if(t < myrecordtime || myrecordtime == 0) + e.race_checkpoint_record[cp] = t; // resending done below + if(t < recordtime || recordtime == 0) { race_checkpoint_records[cp] = t; @@ -442,8 +445,6 @@ void race_SendTime(entity e, float cp, float t, float tvalid) FOREACH_CLIENT(IS_PLAYER(it) && IS_REAL_CLIENT(it) && it.race_checkpoint == cp, LAMBDA(race_SendNextCheckpoint(it, 0))); } - if(t < myrecordtime || myrecordtime == 0) - e.race_checkpoint_record[cp] = t; // resending done below } } else -- 2.39.2