| 204 | int audiomanager::findsound(const char *name, int vol, vector<soundconfig> &sounds) |
| 205 | { |
| 206 | loopv(sounds) |
| 207 | { |
| 208 | if(!strcmp(sounds[i].buf->name, name) && (!vol || sounds[i].vol==vol)) return i; |
| 209 | } |
| 210 | return -1; |
| 211 | } |
| 212 |
no test coverage detected