DrawChooseTree(&score_entry_current);
}
-static char *getHallOfFameScoreText(int nr)
+static char *getHallOfFameTimeText(int nr)
{
- if (!level.rate_time_over_score)
- return int2str(scores.entry[nr].score, 5); // show normal score
-
- if (level.use_step_counter)
- return int2str(scores.entry[nr].time, 5); // show number of steps
-
static char score_text[10];
int time_seconds = scores.entry[nr].time / FRAMES_PER_SECOND;
int mm = (time_seconds / 60) % 60;
return score_text;
}
+static char *getHallOfFameScoreText(int nr)
+{
+ if (!level.rate_time_over_score)
+ return int2str(scores.entry[nr].score, 5); // show normal score
+ else if (level.use_step_counter)
+ return int2str(scores.entry[nr].time, 5); // show number of steps
+ else
+ return getHallOfFameTimeText(nr); // show playing time
+}
+
static void HandleHallOfFame_SelectLevel(int step, int direction)
{
int old_level_nr = level_nr;