diff --git a/src/lluadef.h b/src/lluadef.h index 59e8584..5586dfc 100644 --- a/src/lluadef.h +++ b/src/lluadef.h @@ -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)) diff --git a/src/music.c b/src/music.c index 538ac09..985d4cb 100644 --- a/src/music.c +++ b/src/music.c @@ -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"); } /**