if(tvalid)
{
recordtime = race_checkpoint_records[cp];
- float myrecordtime = e.race_checkpoint_record[cp];
recordholder = strcat(race_checkpoint_recordholders[cp]); // make a tempstring copy, as we'll possibly strunzone it!
if(recordholder == e.netname)
recordholder = "";
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)
{
});
}
}
+ // check if new pb should be set for a checkpoint
+ if(tvalid)
+ {
+ float myrecordtime = e.race_checkpoint_record[cp];
+ if(t != 0)
+ if(t < myrecordtime || myrecordtime == 0)
+ e.race_checkpoint_record[cp] = t;
+ }
}
else // RACE! Not Qualifying
{