racing:: myname added to scores
This commit is contained in:
parent
47e43f974c
commit
46b87a20b2
|
@ -140,6 +140,7 @@ void improveItemScores();
|
||||||
#include "private/hypersteam.cpp"
|
#include "private/hypersteam.cpp"
|
||||||
#elif !ISANDROID && !ISIOS
|
#elif !ISANDROID && !ISIOS
|
||||||
void achievement_init() {}
|
void achievement_init() {}
|
||||||
|
string myname() { return "Rogue"; }
|
||||||
void achievement_close() {}
|
void achievement_close() {}
|
||||||
void achievement_gain(const char* s, char flags) {
|
void achievement_gain(const char* s, char flags) {
|
||||||
achievement_log(s, flags);
|
achievement_log(s, flags);
|
||||||
|
|
3
hyper.h
3
hyper.h
|
@ -618,6 +618,9 @@ void achievement_init();
|
||||||
// close the achievement system.
|
// close the achievement system.
|
||||||
void achievement_close();
|
void achievement_close();
|
||||||
|
|
||||||
|
// get the user name
|
||||||
|
string myname();
|
||||||
|
|
||||||
// gain the achievement with the given name.
|
// gain the achievement with the given name.
|
||||||
// flags: 'e' - for Euclidean, 's' - for Shmup, '7' - for heptagonal
|
// flags: 'e' - for Euclidean, 's' - for Shmup, '7' - for heptagonal
|
||||||
// Only awarded if special modes are matched exactly.
|
// Only awarded if special modes are matched exactly.
|
||||||
|
|
|
@ -1100,6 +1100,7 @@ void uploadScore() {
|
||||||
for(eLand l: race_lands) {
|
for(eLand l: race_lands) {
|
||||||
int i = get_score_in_land(l);
|
int i = get_score_in_land(l);
|
||||||
if(!i) continue;
|
if(!i) continue;
|
||||||
|
scoreboard[myname()][l] = i;
|
||||||
int score = 60000000 / i; // 1000 points for minute, 2000 points for 30 sec
|
int score = 60000000 / i; // 1000 points for minute, 2000 points for 30 sec
|
||||||
tscore += score;
|
tscore += score;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue