ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/socket/sounds.C
(Generate patch)

Comparing deliantra/server/socket/sounds.C (file contents):
Revision 1.23 by root, Wed Aug 1 01:53:13 2007 UTC vs.
Revision 1.24 by root, Fri Sep 7 17:39:17 2007 UTC

54 auto (i, ht.find (str)); 54 auto (i, ht.find (str));
55 55
56 if (i != ht.end ()) 56 if (i != ht.end ())
57 return i->second; 57 return i->second;
58 58
59 //TODO: really fall back to face name? 59 if (strncmp (str, "sound/", sizeof ("sound/") - 1))
60 char face[128]; 60 str = format ("sound/%s", str);
61 snprintf (face, 128, "sound/%s", str); 61
62 return face_find (face); 62 return face_find (str);
63} 63}
64 64
65void 65void
66sound_set (const char *str, faceidx face) 66sound_set (const char *str, faceidx face)
67{ 67{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines