From 28e6b70ba73674607be6782a7bdf1bbf4181e93b Mon Sep 17 00:00:00 2001 From: TimeServ Date: Thu, 30 Jun 2005 00:47:00 +0000 Subject: [PATCH] particle field fixes git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1121 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/r_part.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/client/r_part.c b/engine/client/r_part.c index 6e4f26e3b..0112071be 100644 --- a/engine/client/r_part.c +++ b/engine/client/r_part.c @@ -333,7 +333,7 @@ static int CheckAssosiation(char *name, int from) #ifdef RGLQUAKE void P_LoadTexture(part_type_t *ptype, qboolean warn) { - if (strcmp(ptype->texname, "default")) + if (*ptype->texname && strcmp(ptype->texname, "default")) { ptype->texturenum = Mod_LoadHiResTexture(ptype->texname, "particles", true, true, true); @@ -850,7 +850,7 @@ void P_ParticleEffect_f(void) if (ptype->friction) ptype->flags |= PT_FRICTION; - if (ptype->type == PT_NORMAL && !ptype->texname) + if (ptype->type == PT_NORMAL && !*ptype->texname) ptype->type = PT_SPARK; if (ptype->type == PT_SPARK) {