X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Futil.qh;h=df7a1546bc825197179bc26780486259b196975d;hb=094f9682a7e8258a383ea9574dc7144eaf7ceecc;hp=61b9ad0e2b06dde9c4621dd25f2b25d9af5e52ab;hpb=7e3735739bcbede6b9dbccad4610eaff05ac1674;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/util.qh b/qcsrc/common/util.qh index 61b9ad0e2..df7a1546b 100644 --- a/qcsrc/common/util.qh +++ b/qcsrc/common/util.qh @@ -104,6 +104,7 @@ float mod(float a, float b) { return a - (floor(a / b) * b); } #endif #define TIME_TO_NTHS(t,n) floor((t) * (n) + 0.4) +string format_time(float seconds); string mmsss(float t); string mmssss(float t); @@ -378,9 +379,9 @@ vector get_corner_position(entity box, float corner); #define fprintf(file, ...) fputs(file, sprintf(__VA_ARGS__)) #define bprintf(...) bprint(sprintf(__VA_ARGS__)) -#ifndef MENUQC +//#ifndef MENUQC void backtrace(string msg); -#endif +//#endif // color code replace, place inside of sprintf and parse the string... defaults described as constants // foreground/normal colors