|
From: Tapio V. <aa...@us...> - 2009-12-30 17:06:54
|
Module: performous
Branch: master
Commit: 9cf904b0457180685f9dae02d76cd87fd2d03c14
Author: Tapio Vierros <tap...@gm...>
Date: Wed Dec 30 19:05:32 2009 +0200
Fix: Remember to construct new notes when changing dance track.
---
game/dancegraph.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/game/dancegraph.cc b/game/dancegraph.cc
index 8b065a0..90da7fd 100644
--- a/game/dancegraph.cc
+++ b/game/dancegraph.cc
@@ -82,8 +82,6 @@ DanceGraph::DanceGraph(Audio& audio, Song const& song):
throw std::runtime_error("Could not find any dance tracks.");
gameMode(0);
- difficultyDelta(0); // hack to get initial level
-
}
/// Attempt to select next/previous game mode
@@ -122,6 +120,8 @@ void DanceGraph::gameMode(int direction) {
else if (gm == "ex2-real") { m_pads = 7; std::copy(mapping7, mapping7+max_panels, m_arrow_map); }
else if (gm == "para-single") { m_pads = 5; std::copy(mapping5, mapping5+max_panels, m_arrow_map); }
else throw std::runtime_error("Unknown track " + gm);
+
+ difficultyDelta(0); // Construct new notes
}
/// Are we alive?
|