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.21 by root, Wed Aug 1 00:26:05 2007 UTC vs.
Revision 1.22 by root, Wed Aug 1 01:07:42 2007 UTC

58faceidx 58faceidx
59sound_find (const char *str) 59sound_find (const char *str)
60{ 60{
61 auto (i, ht.find (str)); 61 auto (i, ht.find (str));
62 62
63 return i == ht.end () 63 if (i != ht.end ())
64 ? 0
65 : i->second; 64 return i->second;
65
66 //TODO: really fall back to face name?
67 char face[128];
68 snprintf (face, 128, "sound/%s", str);
69 return face_find (face);
66} 70}
67 71
68void 72void
69sound_set (const char *str, faceidx face) 73sound_set (const char *str, faceidx face)
70{ 74{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines