Only stop music at jukebox_stop() if MIDI jukebox_loaded - otherwise user can stop Jukebox with keys but not start it again

This commit is contained in:
zicodxx 2008-06-01 22:33:21 +00:00
parent eb26c2bb7f
commit f710bdd0f4
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@ D1X-Rebirth Changelog
20080602
--------
main/inferno.c: Added d1xrdata.zip for custom data
arch/sdl/jukebox.c: Only stop music at jukebox_stop() if MIDI jukebox_loaded - otherwise user can stop Jukebox with keys but not start it again
20080601
--------

View file

@ -141,7 +141,7 @@ void jukebox_play(int loop) {
}
void jukebox_stop() {
//if (!jukebox_loaded) return; // since this function is also used for stopping MIDI
if (!jukebox_loaded) return; // since this function is also used for stopping MIDI
mix_stop_music();
if (jukebox_playing)
hud_message(MSGC_GAME_FEEDBACK, JUKEBOX_HUDMSG_STOPPED);