infinite music

This commit is contained in:
Mylloon 2023-05-03 19:36:13 +02:00
parent e71174380d
commit 1089501ad9
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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);
};