Bugfix : no music when losing GP, see #2296

This commit is contained in:
Marianne Gagnon
2015-09-12 19:54:40 -04:00
parent 4c09d459cb
commit b9183dde21
2 changed files with 10 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
#include "states_screens/grand_prix_lose.hpp"
#include "audio/music_manager.hpp"
#include "audio/sfx_manager.hpp"
#include "challenges/unlock_manager.hpp"
#include "config/player_manager.hpp"
@@ -209,3 +210,11 @@ void GrandPrixLose::setKarts(std::vector<std::string> ident_arg)
// -------------------------------------------------------------------------------------
MusicInformation* GrandPrixLose::getInGameMenuMusic() const
{
MusicInformation* mi = music_manager->getMusicInformation("lose_theme.music");
return mi;
}
// -------------------------------------------------------------------------------------

View File

@@ -62,6 +62,7 @@ public:
void onUpdate(float dt) OVERRIDE;
/** \brief set which karts lost this GP */
void setKarts(std::vector<std::string> ident);
MusicInformation* getInGameMenuMusic() const OVERRIDE;
};
#endif