1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-16 14:47:39 +00:00

fixes to daily leaderboards

This commit is contained in:
Zeno Rogue
2018-05-27 01:06:12 +02:00
parent 319190b0dd
commit 9fb73c79bb
3 changed files with 13 additions and 3 deletions

View File

@@ -557,10 +557,15 @@ void improveItemScores() {
improve_score(77, itSwitch);
}
int next_stat_tick;
void achievement_final(bool really_final) {
if(offlineMode) return;
#ifdef HAVE_ACHIEVEMENTS
upload_score(LB_STATISTICS, time(NULL));
if(ticks > next_stat_tick) {
upload_score(LB_STATISTICS, time(NULL));
next_stat_tick = ticks + 600000;
}
if(cheater) return;
#if CAP_TOUR
if(tour::on) return;
@@ -584,9 +589,9 @@ void achievement_final(bool really_final) {
return;
}
#ifdef CAP_DAILY
#if CAP_DAILY
if(daily::on) {
upload_score(daily::find_daily_lbid(daily::daily_id), gold(NO_LOVE));
daily::uploadscore(really_final);
return;
}
#endif