1
0
Fork 0
forked from fte/fteqw

Don't force sound/ infront of sound file names.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2001 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-02-22 23:39:07 +00:00
parent a28b3f657b
commit b54b52f8cc

View file

@ -265,6 +265,7 @@ sfxcache_t *S_LoadSound (sfx_t *s)
//Con_Printf ("S_LoadSound: %x\n", (int)stackbuf);
// load it in
data = NULL;
if (*name == '*')
{
Q_strcpy(namebuffer, "players/male/"); //q2
@ -276,17 +277,19 @@ sfxcache_t *S_LoadSound (sfx_t *s)
{
Q_strcpy(namebuffer, "sound/");
Q_strcat(namebuffer, name);
data = COM_LoadStackFile(name, stackbuf, sizeof(stackbuf));
}
// Con_Printf ("loading %s\n",namebuffer);
if (!data)
data = COM_LoadStackFile(namebuffer, stackbuf, sizeof(stackbuf));
}
if (!data)
{
//FIXME: check to see if qued for download.
Con_Printf ("Couldn't load %s\n", namebuffer);
Con_DPrintf ("Couldn't load %s\n", namebuffer);
return NULL;
}