Commit c6d4e6de authored by nanahira's avatar nanahira

Update game.cpp

parent 4b7926a6
......@@ -667,12 +667,6 @@ bool Game::Initialize() {
#ifdef YGOPRO_USE_IRRKLANG
engineSound = irrklang::createIrrKlangDevice();
engineMusic = irrklang::createIrrKlangDevice();
#ifdef YGOPRO_USE_IKPMP3
if(engineMusic) {
irrklang::ikpMP3Init(engineSound);
irrklang::ikpMP3Init(engineMusic);
}
#endif
if(!engineSound || !engineMusic) {
chkEnableSound->setChecked(false);
chkEnableSound->setEnabled(false);
......@@ -680,6 +674,12 @@ bool Game::Initialize() {
chkEnableMusic->setEnabled(false);
chkMusicMode->setEnabled(false);
}
#ifdef YGOPRO_USE_IKPMP3
else {
irrklang::ikpMP3Init(engineSound);
irrklang::ikpMP3Init(engineMusic);
}
#endif
#endif
hideChat = false;
hideChatTimer = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment