Permalink
Browse files

Menu click did not play when pressing return

  • Loading branch information...
Kwarf committed Aug 25, 2014
1 parent 0bc1ca9 commit 8df9afe715cc0acb7a43426e3ff354341cba4b3e
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/states/MapSelectionState.cpp
@@ -183,7 +183,6 @@ void MapSelectionState::onMouseButtonDown(SDL_MouseButtonEvent event)
if (m_itemUnderCursor)
{
activate();
SoundHandler::play(SoundHandler::Sound::Click);
}
break;
@@ -347,6 +346,8 @@ void MapSelectionState::activate()
{
if (!m_skipped && unsigned(-1) != m_selectedMap)
{
SoundHandler::play(SoundHandler::Sound::Click);
MapSelectionItem &map = m_mapSelectionToken
.items()
.at(m_selectedMap);

0 comments on commit 8df9afe

Please sign in to comment.