-Added \" support to quoted strings in Com_ParseToken.
-Minor change to PRVM_PrintStatus.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4722
d7cf8633-e32d-0410-b094-
e92efae38249
// quoted string
for (data++;*data != '\"';data++)
{
+ if (*data == '\\' && data[1] == '"' )
+ data++;
if (!*data || len >= (int)sizeof(com_token) - 1)
{
com_token[0] = 0;
// normal menu names (rest)
#define M_F_TOGGLE "m_toggle"
#define M_F_SHUTDOWN "m_shutdown"
-#undef NG_MENU
+
static char *m_required_func[] = {
M_F_INIT,
M_F_KEYDOWN,
return;
}
- Cvar_Get(name, value, 0);
+ Cvar_Get(name, value, flags);
PRVM_G_FLOAT(OFS_RETURN) = 1; // success
}
int i;
if (prog->xfunction)
{
- for (i = -4;i <= 0;i++)
+ for (i = -7; i <= 0;i++)
if (prog->xstatement + i >= prog->xfunction->first_statement)
PRVM_PrintStatement (prog->statements + prog->xstatement + i);
}