|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-14 18:44:37
|
Module: performous
Branch: dance
Commit: 63610f031e9e9391961849fa2a265a9a872e29b3
Author: Tapio Vierros <tap...@gm...>
Date: Thu Nov 12 22:35:20 2009 +0200
Currently selected song is preserved after initial loading/randomizing is complete.
---
game/songs.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/songs.cc b/game/songs.cc
index 3b63876..4a9c5a5 100644
--- a/game/songs.cc
+++ b/game/songs.cc
@@ -116,8 +116,8 @@ void Songs::update() {
if (m_dirty) filter_internal();
// Shuffle the songlist if shuffle is finished and all songs are already filtered
if (m_needShuffle && !m_dirty) {
+ RestoreSel restore(*this);
randomize_internal();
- math_cover.setTarget(0, m_songs.size());
m_needShuffle = false;
}
}
|