From fdd63c14cc43d4fb4133eb1000cbc553ab006251 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 18 Sep 2011 00:54:44 +0200 Subject: [PATCH] Don't play music in first Kline battle when music is disabled. --- code/missions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/missions.cpp b/code/missions.cpp index 342a64f..6b7eb24 100644 --- a/code/missions.cpp +++ b/code/missions.cpp @@ -507,7 +507,8 @@ static char revealHiddenObjectives() enemy[WC_KLINE].flags |= FL_IMMORTAL | FL_NOFIRE; setTarget(WC_KLINE); loadMusic("music/TranceGeneration.mod"); - Mix_PlayMusic(engine.music, -1); + if ((engine.useAudio) && (engine.useMusic)) + Mix_PlayMusic(engine.music, -1); } }