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:
parent
0a25f2084f
commit
28e6b70ba7
1 changed files with 2 additions and 2 deletions
|
@ -333,7 +333,7 @@ static int CheckAssosiation(char *name, int from)
|
||||||
#ifdef RGLQUAKE
|
#ifdef RGLQUAKE
|
||||||
void P_LoadTexture(part_type_t *ptype, qboolean warn)
|
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);
|
ptype->texturenum = Mod_LoadHiResTexture(ptype->texname, "particles", true, true, true);
|
||||||
|
|
||||||
|
@ -850,7 +850,7 @@ void P_ParticleEffect_f(void)
|
||||||
if (ptype->friction)
|
if (ptype->friction)
|
||||||
ptype->flags |= PT_FRICTION;
|
ptype->flags |= PT_FRICTION;
|
||||||
|
|
||||||
if (ptype->type == PT_NORMAL && !ptype->texname)
|
if (ptype->type == PT_NORMAL && !*ptype->texname)
|
||||||
ptype->type = PT_SPARK;
|
ptype->type = PT_SPARK;
|
||||||
if (ptype->type == PT_SPARK)
|
if (ptype->type == PT_SPARK)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue