From ce67f11851a4225a01d00c5ed933dc00d1e9cba7 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 22 Feb 2014 00:27:03 +0000 Subject: [PATCH] Hopefully fixed missing particles bug. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4618 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/p_script.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/client/p_script.c b/engine/client/p_script.c index b2be6f887..46693d277 100644 --- a/engine/client/p_script.c +++ b/engine/client/p_script.c @@ -509,7 +509,8 @@ static int PScript_FindParticleType(char *name) if (!stricmp(part_type[i].name, name)) { 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) { + Cbuf_AddText(va("\nr_part namespace %s %i\n", name, implicit), restrictlevel); Cbuf_AddText(*partset_list[i].data, RESTRICT_LOCAL); + Cbuf_AddText("\nr_part namespace \"\" 0\n", restrictlevel); } return true; }