]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
added support for \" in console
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 6 May 2007 11:37:04 +0000 (11:37 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 6 May 2007 11:37:04 +0000 (11:37 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7235 d7cf8633-e32d-0410-b094-e92efae38249

common.c

index df73349fc57174a839bb11282749d17362bc2fec..fe7e44298823f3d2fdcdb3461490ec1895b44176 100644 (file)
--- a/common.c
+++ b/common.c
@@ -904,6 +904,9 @@ skipwhite:
                                *datapointer = NULL;
                                return false;
                        }
+                       // allow escaped " case
+                       if (*data == '\\' && data[1] == '\"')
+                               data++;
                        com_token[len++] = *data;
                }
                com_token[len] = 0;