From b07ce2db7f98994c491471ec73b14270301a7555 Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 26 Jul 2016 15:16:37 +0200 Subject: [PATCH] Demo camera playback: interpret lines starting with ## as commands --- qcsrc/client/view.qc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcsrc/client/view.qc b/qcsrc/client/view.qc index 2ace1b507..02a81a000 100644 --- a/qcsrc/client/view.qc +++ b/qcsrc/client/view.qc @@ -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, ","); -- 2.39.2