particle field fixes

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1121 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2005-06-30 00:47:00 +00:00
parent 0a25f2084f
commit 28e6b70ba7
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{