Bugfix : no music when losing GP, see #2296
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user