projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added level editor option to sort high scores by playing time (or steps)
[rocksndiamonds.git]
/
src
/
screens.c
diff --git
a/src/screens.c
b/src/screens.c
index 0937577f26b411e625a05550634257599f7482c8..c23f7ce6cd2af8a40baf75989ef39ef22d188962 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-5072,8
+5072,12
@@
void DrawHallOfFame(int level_nr, int highlight_position)
static char *getHallOfFameScoreText(int nr)
{
// use playing time instead of score for Supaplex levels
static char *getHallOfFameScoreText(int nr)
{
// use playing time instead of score for Supaplex levels
- if (level.game_engine_type == GAME_ENGINE_TYPE_SP)
+ if (level.rate_time_over_score ||
+ level.game_engine_type == GAME_ENGINE_TYPE_SP)
{
{
+ if (level.use_step_counter)
+ return int2str(scores.entry[nr].time, 5);
+
static char score_text[10];
int time_final_max = 999;
int time_seconds = scores.entry[nr].time / FRAMES_PER_SECOND;
static char score_text[10];
int time_final_max = 999;
int time_seconds = scores.entry[nr].time / FRAMES_PER_SECOND;