X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Frace.qc;h=f8af3fc5f716c5ca12eb604c6f32ecd55c64d496;hb=e88e1e15090f826fe3ac9b006e89eca0d1ecfe68;hp=545bdad27be16a5595e74692fd9fa750cc3fad26;hpb=6062327f5a69ea3c2fe236f0d1304140f6b3a43f;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/race.qc b/qcsrc/server/race.qc index 545bdad27..f8af3fc5f 100644 --- a/qcsrc/server/race.qc +++ b/qcsrc/server/race.qc @@ -61,7 +61,7 @@ void write_recordmarker(entity pl, float tstart, float dt) // also write a marker into demo files for demotc-race-record-extractor to find stuffcmd(pl, strcat( - strcat("//", strconv(2, 0, 0, GetGametype()), " RECORD SET ", TIME_ENCODED_TOSTRING(TIME_ENCODE(dt))), + strcat("//", strconv(2, 0, 0, GetGametype()), " RECORD SET ", TIME_ENCODED_TOSTRING(TIME_ENCODE(dt), false)), " ", ftos(tstart), " ", ftos(dt), "\n")); } @@ -110,7 +110,7 @@ void race_writeTime(string map, float t, string myuid) } if (prevpos) { - // player improved his existing record, only have to iterate on ranks between new and old recs + // player improved their existing record, only have to iterate on ranks between new and old recs for (i = prevpos; i > newpos; --i) { db_put(ServerProgsDB, strcat(map, record_type, "time", ftos(i)), ftos(race_readTime(map, i - 1))); @@ -1028,7 +1028,7 @@ vector trigger_race_checkpoint_spawn_evalfunc(entity this, entity player, entity if(pl > race_highest_place_spawn) pl = 0; if(pl == 0 && !player.race_started) - pl = race_highest_place_spawn; // use last place if he has not even touched finish yet + pl = race_highest_place_spawn; // use last place if they have not even touched finish yet if(spot.race_place != pl) return '-1 0 0'; }