Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool CEngine::PrecacheSound( string szKey, string szFile )
- {
- CSound s;
- if ( !s.Load( szFile ) )
- return false;
- cout << &s << endl;
- pair< map< string, CSound >::iterator, bool > r = m_SoundList.insert( pair< string, CSound >( szKey, s ) );
- if ( !r.second )
- {
- ConPrint( "Couldn't add sound by key: " + r.first->first, MSG_WARN );
- return false;
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement