X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fscreens.c;h=c60881afae76b2c85850c6196788f7238780847b;hb=4886496a94259950ec6e62bbad4d67784b5d2d2d;hp=0937577f26b411e625a05550634257599f7482c8;hpb=7edc7ca00edb91a62392337dc612ae8156d3eb2a;p=rocksndiamonds.git diff --git a/src/screens.c b/src/screens.c index 0937577f..c60881af 100644 --- a/src/screens.c +++ b/src/screens.c @@ -5071,27 +5071,20 @@ void DrawHallOfFame(int level_nr, int highlight_position) static char *getHallOfFameScoreText(int nr) { - // use playing time instead of score for Supaplex levels - if (level.game_engine_type == GAME_ENGINE_TYPE_SP) - { - static char score_text[10]; - int time_final_max = 999; - int time_seconds = scores.entry[nr].time / FRAMES_PER_SECOND; - int score = scores.entry[nr].score; - - // convert old score file entries without playing time - if (time_seconds == 0 && score > 0 && score < time_final_max) - time_seconds = time_final_max - score - 1; + if (!level.rate_time_over_score) + return int2str(scores.entry[nr].score, 5); // show normal score - int mm = (time_seconds / 60) % 60; - int ss = (time_seconds % 60); + if (level.use_step_counter) + return int2str(scores.entry[nr].time, 5); // show number of steps - sprintf(score_text, "%02d:%02d", mm, ss); + static char score_text[10]; + int time_seconds = scores.entry[nr].time / FRAMES_PER_SECOND; + int mm = (time_seconds / 60) % 60; + int ss = (time_seconds % 60); - return score_text; - } + sprintf(score_text, "%02d:%02d", mm, ss); // show playing time - return int2str(scores.entry[nr].score, 5); + return score_text; } static void drawHallOfFameList(int level_nr, int first_entry,