Add plop sound effect for 1st vote if this screen is on
This commit is contained in:
parent
cfdd66f770
commit
e91c9aa95a
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
#include "states_screens/online/tracks_screen.hpp"
|
#include "states_screens/online/tracks_screen.hpp"
|
||||||
|
|
||||||
|
#include "audio/sfx_manager.hpp"
|
||||||
#include "challenges/unlock_manager.hpp"
|
#include "challenges/unlock_manager.hpp"
|
||||||
#include "config/player_manager.hpp"
|
#include "config/player_manager.hpp"
|
||||||
#include "config/user_config.hpp"
|
#include "config/user_config.hpp"
|
||||||
@ -665,6 +666,9 @@ void TracksScreen::addVote(uint32_t host_id)
|
|||||||
// Add a new index if this is the first vote for the host/
|
// Add a new index if this is the first vote for the host/
|
||||||
if (it == m_index_to_hostid.end())
|
if (it == m_index_to_hostid.end())
|
||||||
{
|
{
|
||||||
|
// Sound effect like lobby chat
|
||||||
|
if (GUIEngine::getCurrentScreen() == this)
|
||||||
|
SFXManager::get()->quickSound("plopp");
|
||||||
m_index_to_hostid.push_back(host_id);
|
m_index_to_hostid.push_back(host_id);
|
||||||
}
|
}
|
||||||
} // addVote
|
} // addVote
|
||||||
|
Loading…
Reference in New Issue
Block a user