|
From: Lasse Kärkkäi. <tr...@us...> - 2009-11-14 18:44:21
|
Module: performous
Branch: dance
Commit: b1b9a58df683e2d4120f0fe9fbb5a4228ac82a53
Author: Markus Raab <un...@ma...>
Date: Thu Nov 12 09:00:06 2009 +0100
track names are lowercase
---
data/database.xml | 2 +-
game/hiscore.cc | 2 +-
game/hiscore.hh | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/data/database.xml b/data/database.xml
index 8116110..725b6e2 100644
--- a/data/database.xml
+++ b/data/database.xml
@@ -10,7 +10,7 @@
</player>
</players>
<hiscores> <!-- a list of highscores -->
- <hiscore songid="123" playerid="123" track="VOCALS">600</hiscore>
+ <hiscore songid="123" playerid="123" track="vocals">600</hiscore>
</hiscores>
</performous>
<!--
diff --git a/game/hiscore.cc b/game/hiscore.cc
index 67f2e3e..a74ec5e 100644
--- a/game/hiscore.cc
+++ b/game/hiscore.cc
@@ -64,7 +64,7 @@ void Hiscore::load(xmlpp::NodeSet const& n) {
int score = boost::lexical_cast<int>(tn->get_content());
std::string track;
- if (!a_track) track = "VOCALS";
+ if (!a_track) track = "vocals";
else track = a_track->get_value();
addHiscore(score, playerid, songid, track);
diff --git a/game/hiscore.hh b/game/hiscore.hh
index df673a9..951fe16 100644
--- a/game/hiscore.hh
+++ b/game/hiscore.hh
@@ -51,7 +51,7 @@ class Hiscore
@return true if the score make it into the top.
@return false if addNewHiscore does not make sense
for that score.*/
- bool reachedHiscore(int score, int songid, std::string const& track = "VOCALS");
+ bool reachedHiscore(int score, int songid, std::string const& track = "vocals");
/**Add a specific highscore into the list.
@@ -64,7 +64,7 @@ class Hiscore
in its valid interval. If one of this conditions is not net a
HiscoreException will be raised.
*/
- void addHiscore(int score, int playerid, int songid, std::string const& track = "VOCALS");
+ void addHiscore(int score, int playerid, int songid, std::string const& track = "vocals");
private:
typedef std::multiset<HiscoreItem>hiscore_t;
|