divVerent's patch to enable subscoped locals, not sure if subscoped_away is required, but committing that anyway. Its copied from pastebin, so sorry for conflicts.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3705 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
3a413ede89
commit
ec206be55a
1 changed files with 6 additions and 2 deletions
|
@ -5538,9 +5538,13 @@ void QCC_PR_ParseStatement (void)
|
|||
|
||||
if (pr_subscopedlocals)
|
||||
{
|
||||
for (e2 = pr.localvars; e2 != e; e2 = e2->nextlocal)
|
||||
for (e2 = pr.localvars; e2 != e; e2 = e2->nextlocal)
|
||||
{
|
||||
Hash_RemoveData(&localstable, e2->name, e2);
|
||||
if (!e2->subscoped_away)
|
||||
{
|
||||
Hash_RemoveData(&localstable, e2->name, e2);
|
||||
e2->subscoped_away = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue