|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-14 18:45:19
|
Module: performous
Branch: dance
Commit: 68cf4a6a04f4ec8022df21bfcd8ef9c6c00f216f
Author: Tapio Vierros <tap...@gm...>
Date: Sat Nov 14 19:15:09 2009 +0200
Fixed forgotten renames.
Also lowered the no player threshold for instruments for easier testing (there is no random noise with instruments).
---
game/screen_sing.cc | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/game/screen_sing.cc b/game/screen_sing.cc
index e38a99b..a6c383b 100644
--- a/game/screen_sing.cc
+++ b/game/screen_sing.cc
@@ -339,10 +339,10 @@ ScoreWindow::ScoreWindow(Instruments& instruments, Database& database):
item.track_simple = it->getTrack();
item.track = it->getTrack() + " - " + it->getDifficultyString();
item.track[0] = toupper(item.track[0]);
- if (item.score < 500) { std::cout << "kick " << item.track << std::endl; it = instruments.erase(it); continue; }
+ if (item.score < 100) { std::cout << "kick " << item.track << std::endl; it = instruments.erase(it); continue; }
- if (item.track == "drums") item.color = glutil::Color(0.1f, 0.1f, 0.1f);
- else if (item.track == "bass") item.color = glutil::Color(0.5f, 0.3f, 0.1f);
+ if (item.track_simple == "drums") item.color = glutil::Color(0.1f, 0.1f, 0.1f);
+ else if (item.track_simple == "bass") item.color = glutil::Color(0.5f, 0.3f, 0.1f);
else item.color = glutil::Color(1.0f, 0.0f, 0.0f);
std::cout << "insert " << item.track << " score: " << item.score << std::endl;
@@ -355,7 +355,7 @@ ScoreWindow::ScoreWindow(Instruments& instruments, Database& database):
m_rank = "No player!";
else {
int topScore = m_database.scores.front().score;
- if (m_database.scores.front().track == "vocals") {
+ if (m_database.scores.front().track_simple == "vocals") {
if (topScore > 8000) m_rank = "Hit singer";
else if (topScore > 6000) m_rank = "Lead singer";
else if (topScore > 4000) m_rank = "Rising star";
|