projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- beginnings of a wingling
[supertux.git]
/
src
/
music_manager.cpp
diff --git
a/src/music_manager.cpp
b/src/music_manager.cpp
index
e2f4125
..
7cf9e9c
100644
(file)
--- a/
src/music_manager.cpp
+++ b/
src/music_manager.cpp
@@
-82,7
+82,7
@@
MusicManager::free_music(MusicResource* )
}
void
}
void
-MusicManager::play_music(const MusicRef& musicref)
+MusicManager::play_music(const MusicRef& musicref
, int loops
)
{
if(!audio_device)
return;
{
if(!audio_device)
return;
@@
-97,7
+97,7
@@
MusicManager::play_music(const MusicRef& musicref)
current_music->refcount++;
if(music_enabled)
current_music->refcount++;
if(music_enabled)
- Mix_PlayMusic(current_music->music,
-1
);
+ Mix_PlayMusic(current_music->music,
loops
);
}
void
}
void