From: havoc Date: Fri, 18 May 2007 15:26:11 +0000 (+0000) Subject: implemented support for \" in console command parsing code X-Git-Tag: xonotic-v0.1.0preview~3143 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5ed1c3533b68ecc28947896ce646f2dda1e82c66;p=xonotic%2Fdarkplaces.git implemented support for \" in console command parsing code git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7312 d7cf8633-e32d-0410-b094-e92efae38249 --- 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')