Advertisement
Guest User

Untitled

a guest
Jun 12th, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1.  bool CEngine::PrecacheSound( string szKey, string szFile )
  2.     {
  3.         CSound s;
  4.         if ( !s.Load( szFile ) )
  5.             return false;
  6.  
  7.         cout << &s << endl;
  8.         pair< map< string, CSound >::iterator, bool > r = m_SoundList.insert( pair< string, CSound >( szKey, s ) );
  9.  
  10.         if ( !r.second )
  11.         {
  12.             ConPrint( "Couldn't add sound by key: " + r.first->first, MSG_WARN );
  13.             return false;
  14.         }
  15.  
  16.         return true;
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement