|
From: Tapio V. <aa...@us...> - 2010-01-09 15:02:32
|
Module: performous
Branch: master
Commit: 91595cc79fad3fa826dba208556e15e97e5c22ef
Author: Tapio Vierros <tap...@gm...>
Date: Sat Jan 9 12:07:57 2010 +0200
Enable forward seeking in dancing.
---
game/screen_sing.cc | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/game/screen_sing.cc b/game/screen_sing.cc
index 6b2c268..ccfc908 100644
--- a/game/screen_sing.cc
+++ b/game/screen_sing.cc
@@ -250,14 +250,14 @@ void ScreenSing::manageEvent(SDL_Event event) {
if (key == SDLK_F4) ++config["audio/round-trip"];
if (key == SDLK_F5) --config["audio/controller_delay"];
if (key == SDLK_F6) ++config["audio/controller_delay"];
- if (m_song->danceTracks.empty()) { // Seeking is currently not permitted for dance songs
- bool seekback = false;
+ bool seekback = false;
+ if (m_song->danceTracks.empty()) { // Seeking backwards is currently not permitted for dance songs
if (key == SDLK_HOME) { m_audio.seekPos(0.0); seekback = true; }
if (key == SDLK_LEFT) { m_audio.seek(-5.0); seekback = true; }
- if (key == SDLK_RIGHT) m_audio.seek(5.0);
- // Some things must be reset after seeking backwards
- if (seekback) m_layout_singer->reset();
}
+ if (key == SDLK_RIGHT) m_audio.seek(5.0);
+ // Some things must be reset after seeking backwards
+ if (seekback) m_layout_singer->reset();
// Reload current song
if (key == SDLK_r) {
exit(); m_song->reload(); enter();
|