*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1379 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -429,11 +429,11 @@ void playsound(int n, physent *p, entity *ent, const vec *loc)
|
||||
|
||||
if(!slot.s->sound)
|
||||
{
|
||||
s_sprintfd(buf)("packages/audio/sounds/%s", slot.s->name);
|
||||
|
||||
loopi(2)
|
||||
const char *exts[] = { "", ".wav", ".ogg" };
|
||||
string buf;
|
||||
loopi(sizeof(exts)/sizeof(exts[0]))
|
||||
{
|
||||
if(i) s_strcat(buf, ".wav");
|
||||
s_sprintf(buf)("packages/audio/sounds/%s%s", slot.s->name, exts[i]);
|
||||
const char *file = findfile(path(buf), "rb");
|
||||
#ifdef USE_MIXER
|
||||
slot.s->sound = Mix_LoadWAV(file);
|
||||
|
||||
Reference in New Issue
Block a user