]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/util.qh
Merge branch 'Mario/ctf_rankings' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / util.qh
index 5211c7588fb00ebfa8a417aa75dc47d32ef39d86..13c4c0900817d5f8298df91435c3dcfc9c6e2c28 100644 (file)
@@ -49,6 +49,8 @@ void db_put(int db, string key, string value);
 int buf_load(string filename);
 void buf_save(int buf, string filename);
 
+// adding just 0.4 for race times so it rounds down in the .5 case (matching the timer display)
+// FIXME it doesn't round properly
 #define TIME_TO_NTHS(t,n) floor((t) * (n) + 0.4)
 string format_time(float seconds);
 string mmsss(float t);