From: havoc Date: Sat, 3 Feb 2007 04:03:01 +0000 (+0000) Subject: removed single-quoted string support in console parser because it breaks the maplist... X-Git-Tag: xonotic-v0.1.0preview~3636 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a14685b713c8cedf1eb36ec5a292680800ad1a29;p=xonotic%2Fdarkplaces.git removed single-quoted string support in console parser because it breaks the maplist in nexuiz git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6775 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/common.c b/common.c index ab5fc319..50fb662e 100644 --- a/common.c +++ b/common.c @@ -909,22 +909,6 @@ skipwhite: com_token[len] = 0; *datapointer = data+1; } - else if (*data == '\'') - { - // quoted string - for (data++;*data != '\'';data++) - { - if (!*data || len >= (int)sizeof(com_token) - 1) - { - com_token[0] = 0; - *datapointer = NULL; - return false; - } - com_token[len++] = *data; - } - com_token[len] = 0; - *datapointer = data+1; - } else { // regular word