[Fix] Ensure that music doesn't stall.
This commit is contained in:
parent
5d67c45570
commit
e45909e9aa
@ -8,7 +8,7 @@
|
||||
#ifdef DEBUGGING
|
||||
#ifdef DEBUG_PARANOID
|
||||
#define LLUA_DEBUG(str, args...) \
|
||||
(fprintf(stdout, "Lua: "str"\n, ## args), abort())
|
||||
(fprintf(stdout, "Lua: "str"\n", ## args), abort())
|
||||
#else
|
||||
#define LLUA_DEBUG(str, args...) \
|
||||
(fprintf(stdout, "Lua: "str"\n", ## args))
|
||||
|
@ -93,6 +93,10 @@ void music_update(void) {
|
||||
SDL_mutexV(music_lock);
|
||||
|
||||
music_runLua(buf);
|
||||
|
||||
/* Make sure music is playing. */
|
||||
if(!music_isPlaying())
|
||||
music_choose("idle");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user