]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
implemented support for \" in console command parsing code
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 18 May 2007 15:26:11 +0000 (15:26 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 18 May 2007 15:26:11 +0000 (15:26 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7312 d7cf8633-e32d-0410-b094-e92efae38249

cmd.c

diff --git a/cmd.c b/cmd.c
index 086f41e45a4ef2df3ce8774ef2d213e2f2d23c90..00aa78ba00bda6298494e3cfc82bf98c3da610de 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -159,6 +159,8 @@ void Cbuf_Execute (void)
                {
                        if (text[i] == '"')
                                quotes ^= 1;
+                       if (text[i] == '\\' && text[i+1] == '"')
+                               i++;
                        if ( !quotes &&  text[i] == ';')
                                break;  // don't break if inside a quoted string
                        if (text[i] == '\r' || text[i] == '\n')