fix up sound firing
This commit is contained in:
@@ -93,8 +93,13 @@ void RageSoundManager::PlayCopy( const RageSound &snd )
|
||||
* std::basic_string happens to be refcounted). That's not too bad,
|
||||
* but we might do five of these in the same frame ...
|
||||
*/
|
||||
|
||||
RageSound *newsnd = new RageSound(snd);
|
||||
|
||||
/* PlayCopy's sounds must always stop on their own. */
|
||||
newsnd->SetLooping(true);
|
||||
newsnd->SetAutoStop(true);
|
||||
|
||||
/* We're responsible for freeing it. */
|
||||
owned_sounds.insert(newsnd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user