From: Mario Date: Sun, 16 Jul 2017 18:25:42 +0000 (+1000) Subject: Set new personal time before updating regular time X-Git-Tag: xonotic-v0.8.5~2591 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=42c955bde68795ce2d221fb2f62507d388a526eb;p=xonotic%2Fxonotic-data.pk3dir.git Set new personal time before updating regular time --- 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