]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Include player entity id into :recordset: log message morosophos/enhance-demo-record-markers
authorMorosophos <morosophos@teichisma.info>
Thu, 15 Oct 2020 15:53:31 +0000 (18:53 +0300)
committerMorosophos <morosophos@teichisma.info>
Thu, 15 Oct 2020 15:53:31 +0000 (18:53 +0300)
qcsrc/server/race.qc

index 3545d4d25bf121a4e29bd43547f156a44e1ecc5d..139db8d3dcc716165aa9bca43efa5a5cee53c4e5 100644 (file)
@@ -53,7 +53,7 @@ string uid2name(string myuid)
 
 void write_recordmarker(entity pl, float newpos, float tstart, float dt)
 {
-    GameLogEcho(strcat(":recordset:", ftos(newpos), ":", ftos(pl.playerid), ":", ftos(dt)));
+    GameLogEcho(strcat(":recordset:", ftos(newpos), ":", ftos(pl.playerid), ":", ftos(etof(pl)), ":", ftos(dt)));
 
     // also write a marker into demo files for demotc-race-record-extractor to find
     if (pl.crypto_idfp != "") {