// also write a marker into demo files for demotc-race-record-extractor to find
if (pl.crypto_idfp != "") {
stuffcmd(pl,
- sprintf("//%s RECORD SET %s %f %f %f %d %s\n", strconv(2, 0, 0, GetGametype()),
- TIME_ENCODED_TOSTRING(TIME_ENCODE(dt), false), tstart, dt, newpos, pl.crypto_idfp));
- } else {
+ strcat(
+ strcat("//", strconv(2, 0, 0, GetGametype()), " RECORD SET ", TIME_ENCODED_TOSTRING(TIME_ENCODE(dt), false)),
+ strcat(" ", ftos(tstart), " ", ftos(dt), " ", ftos(newpos), " "),
+ strcat(pl.crypto_idfp, "\n")));
+ } else {
stuffcmd(pl,
- sprintf("//%s RECORD SET %s %f %f %f %d ANONYMOUS\n", strconv(2, 0, 0, GetGametype()),
- TIME_ENCODED_TOSTRING(TIME_ENCODE(dt), false), tstart, dt, newpos));
- }
+ strcat(
+ strcat("//", strconv(2, 0, 0, GetGametype()), " RECORD SET ", TIME_ENCODED_TOSTRING(TIME_ENCODE(dt), false)),
+ strcat(" ", ftos(tstart), " ", ftos(dt), " ", ftos(newpos), " ANONYMOUS\n")));
+ }
}
IntrusiveList g_race_targets;