Nuke some mystery code.

I have no idea why I did that, but it crept in with the var substitution
fix, so I guess it might have been an attempt to fix a bug, but it looks
like it was broken anyway.
This commit is contained in:
Bill Currie 2011-09-11 13:10:14 +09:00
parent e5add8b4f5
commit 6fb73b5ae8

View file

@ -318,11 +318,8 @@ qfs_get_gd_params (plitem_t *gdpl, gamedir_t *gamedir, dstring_t *path,
if ((p = PL_ObjectForKey (gdpl, "Path")) && *(ps = PL_String (p))) {
char *str = qfs_var_subst (ps, vars);
char *e = strchr (str, '"');
if (!e)
e = str + strlen (str);
qfs_set_var (vars, "path", va ("%.*s", (int) (e - str), str));
qfs_set_var (vars, "path", str);
if (path->str[0])
dstring_appendstr (path, ":");
dstring_appendstr (path, str);