]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Demo camera playback: interpret lines starting with ## as commands
authorterencehill <piuntn@gmail.com>
Tue, 26 Jul 2016 13:16:37 +0000 (15:16 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 26 Jul 2016 13:16:37 +0000 (15:16 +0200)
qcsrc/client/view.qc

index 2ace1b50740b17c5c438378db44fcd3bc712550b..02a81a0004915c4fad879a41792b1a30b11e602e 100644 (file)
@@ -2302,7 +2302,7 @@ void CSQC_Demo_Camera()
 
                        if(s == "")
                        {
-                               print("^1file closed\n");
+                               print("Camera record file closed\n");
                                close_file();
                                autocvar_camera_playback = 0;
                                return;
@@ -2311,9 +2311,9 @@ void CSQC_Demo_Camera()
                        s2 = substring(s, 0, 2);
 
                        if(s2 == "//")
-                               print("Comment\n");
+                               ;
                        else if(s2 == "##")
-                               print("Do stuff\n");
+                               localcmd("\n", substring(s, 2, strlen(s) - 2), "\n");
                        else
                        {
                                n = tokenizebyseparator(s, ",");