From: Samual Date: Sat, 17 Dec 2011 13:02:20 +0000 (-0500) Subject: Use print_to for time command X-Git-Tag: xonotic-v0.6.0~188^2~28^2~124 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=13a1d003702d737cac38df165580ef22e026fe5d;p=xonotic%2Fxonotic-data.pk3dir.git Use print_to for time command --- diff --git a/qcsrc/server/command/common.qc b/qcsrc/server/command/common.qc index ea6791807..1af9e2324 100644 --- a/qcsrc/server/command/common.qc +++ b/qcsrc/server/command/common.qc @@ -300,13 +300,13 @@ void CommonCommand_time(float request) { case CMD_REQUEST_COMMAND: { - print("time = ", ftos(time), "\n"); - print("frame start = ", ftos(gettime(GETTIME_FRAMESTART)), "\n"); - print("realtime = ", ftos(gettime(GETTIME_REALTIME)), "\n"); - print("hires = ", ftos(gettime(GETTIME_HIRES)), "\n"); - print("uptime = ", ftos(gettime(GETTIME_UPTIME)), "\n"); - print("localtime = ", strftime(TRUE, "%a %b %e %H:%M:%S %Z %Y"), "\n"); // todo: Why is strftime broken? is engine problem, I think. - print("gmtime = ", strftime(FALSE, "%a %b %e %H:%M:%S %Z %Y"), "\n"); + print_to(self, strcat("time = ", ftos(time), "\n")); + print_to(self, strcat("frame start = ", ftos(gettime(GETTIME_FRAMESTART)), "\n")); + print_to(self, strcat("realtime = ", ftos(gettime(GETTIME_REALTIME)), "\n")); + print_to(self, strcat("hires = ", ftos(gettime(GETTIME_HIRES)), "\n")); + print_to(self, strcat("uptime = ", ftos(gettime(GETTIME_UPTIME)), "\n")); + print_to(self, strcat("localtime = ", strftime(TRUE, "%a %b %e %H:%M:%S %Z %Y"), "\n")); // todo: Why is strftime broken? is engine problem, I think. + print_to(self, strcat("gmtime = ", strftime(FALSE, "%a %b %e %H:%M:%S %Z %Y"), "\n")); return; }