"r_particledesc default" should not screw over the user. use ./default if you really meant that.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5374 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2018-12-30 20:29:39 +00:00
parent 06d7eac9a1
commit 9069013dc5
1 changed files with 5 additions and 2 deletions

View File

@ -3602,8 +3602,11 @@ static qboolean P_LoadParticleSet(char *name, qboolean implicit, qboolean showwa
}
}
FS_LoadFile(va("particles/%s.cfg", name), (void**)&file);
if (!file)
if (!strncmp(name, "./", 2))
FS_LoadFile(va("%s.cfg", name+2), (void**)&file);
else
FS_LoadFile(va("particles/%s.cfg", name), (void**)&file);
if (!file && strchr(name, '/'))
FS_LoadFile(va("%s.cfg", name), (void**)&file);
if (file)
{