racing:: myname added to scores

This commit is contained in:
Zeno Rogue 2019-01-17 14:08:10 +01:00
parent 47e43f974c
commit 46b87a20b2
3 changed files with 5 additions and 0 deletions

View File

@ -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);

View File

@ -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.

View File

@ -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;
}