mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 20:11:44 +00:00
"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:
parent
06d7eac9a1
commit
9069013dc5
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue