forked from fte/fteqw
1
0
Fork 0

Hopefully fixed missing particles bug.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4618 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2014-02-22 00:27:03 +00:00
parent 4b2fc5ac01
commit ce67f11851
1 changed files with 4 additions and 1 deletions

View File

@ -509,7 +509,8 @@ static int PScript_FindParticleType(char *name)
if (!stricmp(part_type[i].name, name)) if (!stricmp(part_type[i].name, name))
{ {
ptype = &part_type[i]; ptype = &part_type[i];
break; if (ptype->loaded) //(mostly) ignore ones that are not currently loaded
break;
} }
} }
} }
@ -2527,7 +2528,9 @@ static qboolean P_LoadParticleSet(char *name, qboolean implicit)
{ {
if (partset_list[i].data) if (partset_list[i].data)
{ {
Cbuf_AddText(va("\nr_part namespace %s %i\n", name, implicit), restrictlevel);
Cbuf_AddText(*partset_list[i].data, RESTRICT_LOCAL); Cbuf_AddText(*partset_list[i].data, RESTRICT_LOCAL);
Cbuf_AddText("\nr_part namespace \"\" 0\n", restrictlevel);
} }
return true; return true;
} }