diff --git a/achievement.cpp b/achievement.cpp index 78e560ff..2de324f9 100644 --- a/achievement.cpp +++ b/achievement.cpp @@ -140,6 +140,7 @@ void improveItemScores(); #include "private/hypersteam.cpp" #elif !ISANDROID && !ISIOS void achievement_init() {} +string myname() { return "Rogue"; } void achievement_close() {} void achievement_gain(const char* s, char flags) { achievement_log(s, flags); diff --git a/hyper.h b/hyper.h index 53f695ab..d2e9d53e 100644 --- a/hyper.h +++ b/hyper.h @@ -618,6 +618,9 @@ void achievement_init(); // close the achievement system. void achievement_close(); +// get the user name +string myname(); + // gain the achievement with the given name. // flags: 'e' - for Euclidean, 's' - for Shmup, '7' - for heptagonal // Only awarded if special modes are matched exactly. diff --git a/racing.cpp b/racing.cpp index 55b20104..92e73819 100644 --- a/racing.cpp +++ b/racing.cpp @@ -1100,6 +1100,7 @@ void uploadScore() { for(eLand l: race_lands) { int i = get_score_in_land(l); if(!i) continue; + scoreboard[myname()][l] = i; int score = 60000000 / i; // 1000 points for minute, 2000 points for 30 sec tscore += score; }