From 5ed1c3533b68ecc28947896ce646f2dda1e82c66 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 18 May 2007 15:26:11 +0000 Subject: [PATCH] implemented support for \" in console command parsing code git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7312 d7cf8633-e32d-0410-b094-e92efae38249 --- cmd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd.c b/cmd.c index 086f41e4..00aa78ba 100644 --- 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') -- 2.39.2