From: terencehill Date: Tue, 26 Jul 2016 13:16:37 +0000 (+0200) Subject: Demo camera playback: interpret lines starting with ## as commands X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b07ce2db7f98994c491471ec73b14270301a7555;p=xonotic%2Fxonotic-data.pk3dir.git Demo camera playback: interpret lines starting with ## as commands --- 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, ",");