infinite music
This commit is contained in:
parent
e71174380d
commit
1089501ad9
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ void initMusic(Mix_Music *music, const char *filename) {
|
|||
Mix_VolumeMusic(MIX_MAX_VOLUME / 10);
|
||||
Mix_SetPostMix(callback, NULL);
|
||||
|
||||
if (Mix_PlayMusic(music, 1)) {
|
||||
if (Mix_PlayMusic(music, -1)) {
|
||||
fprintf(stderr, "Erreur Mix_PlayMusic\n");
|
||||
exit(2);
|
||||
};
|
||||
|
|
Reference in a new issue