Fixed primitives, improved sound tracks management, now it's possbile to add a custom tracks for Shop section (Track2.mp3), Option window (Track3.mp3) and Awards section (Track4.mp3) and it's also possible to add two subfolders "MainMenu" and "Battlefield" within "suound" folder where it's possbile to add twenty custom songs ("TrackMenuXX.mp3" and "TrackDuelXX.mp3") that will be played randomly in main menu windows and when match starts.
This commit is contained in:
@@ -550,6 +550,9 @@ void GameApp::playMusic(string filename, bool loop)
|
||||
if (filename.compare(currentMusicFile) == 0 && music)
|
||||
return;
|
||||
|
||||
if(!WResourceManager::Instance()->ssLoadMusic(filename.c_str()))
|
||||
return; // Added to avoid opening not existing file.
|
||||
|
||||
if (music)
|
||||
{
|
||||
JSoundSystem::GetInstance()->StopMusic(music);
|
||||
|
||||
Reference in New Issue
Block a user