]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use print_to for time command
authorSamual <samual@xonotic.org>
Sat, 17 Dec 2011 13:02:20 +0000 (08:02 -0500)
committerSamual <samual@xonotic.org>
Sat, 17 Dec 2011 13:02:20 +0000 (08:02 -0500)
qcsrc/server/command/common.qc

index ea6791807c1227694f7b9128a192f22c60c55bfb..1af9e232424cbca615d75e06250c3c882c37a3a8 100644 (file)
@@ -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;
                }