|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-14 18:45:16
|
Module: performous
Branch: dance
Commit: 6d70e2d3bb6bdc41e565a2f60042ed9f0a767f2e
Author: Tapio Vierros <tap...@gm...>
Date: Sat Nov 14 18:46:57 2009 +0200
Space exits the ScoreWindow (workaround for Enter issue with instruments).
---
game/screen_sing.cc | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/game/screen_sing.cc b/game/screen_sing.cc
index 0314037..e89bdd5 100644
--- a/game/screen_sing.cc
+++ b/game/screen_sing.cc
@@ -181,6 +181,7 @@ void ScreenSing::manageEvent(SDL_Event event) {
m_score_window.reset(new ScoreWindow(m_instruments, m_database)); // Song finished, but no score window -> show it
}
}
+ else if (key == SDLK_SPACE && m_score_window.get()) { activateNextScreen(); return; } // Score window visible -> Space quits
else if (key == SDLK_SPACE || key == SDLK_PAUSE) m_audio.togglePause();
if (m_score_window.get()) return;
// The rest are only available when score window is not displayed and when there are no instruments
|