]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Set new personal time before updating regular time
authorMario <mario@smbclan.net>
Sun, 16 Jul 2017 18:25:42 +0000 (04:25 +1000)
committerMario <mario@smbclan.net>
Sun, 16 Jul 2017 18:25:42 +0000 (04:25 +1000)
qcsrc/server/race.qc

index 5947403397556152ceae52353e9aed05a9938b06..0654c5dc74115ba7c8cc68d96bd75d098337b2c7 100644 (file)
@@ -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