]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
add ticks around vector strings created by vtos
authorWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 22 Aug 2012 13:04:37 +0000 (15:04 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 22 Aug 2012 13:04:37 +0000 (15:04 +0200)
exec.c

diff --git a/exec.c b/exec.c
index 75202575dc0b6f03342fc0488f5f722d5ee5442f..e792affd0bf3d61f8d6ac20e4b05e48357a6f0a6 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -668,7 +668,7 @@ static int qc_vtos(qc_program *prog)
     qcany str;
     CheckArgs(1);
     num = GetArg(0);
-    snprintf(buffer, sizeof(buffer), "%g %g %g", num->vector[0], num->vector[1], num->vector[2]);
+    snprintf(buffer, sizeof(buffer), "`%g %g %g`", num->vector[0], num->vector[1], num->vector[2]);
     str.string = prog_tempstring(prog, buffer);
     Return(str);
     return 0;