From 207fb81bc713079b7b1e0238996127711681717e Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 24 Feb 2022 01:41:05 +0100 Subject: [PATCH] added player rank to score info screen --- src/screens.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/screens.c b/src/screens.c index add4eb56..ecb67db2 100644 --- a/src/screens.c +++ b/src/screens.c @@ -5851,6 +5851,8 @@ void HandleHallOfFame(int mx, int my, int dx, int dy, int button) static void DrawScoreInfo(int entry_nr) { struct ScoreEntry *entry = &scores.entry[entry_nr]; + boolean forced = (scores.force_last_added && entry_nr == scores.last_added); + char *pos_text = (forced ? "???" : int2str(entry_nr + 1, 3)); int font_title = MENU_INFO_FONT_TITLE; int font_head = MENU_INFO_FONT_HEAD; int font_text = MENU_INFO_FONT_TEXT; @@ -5889,6 +5891,10 @@ static void DrawScoreInfo(int entry_nr) DrawTextF(xstart2, ystart, font_text, level.name); ystart += ystep_para; + DrawTextF(xstart1, ystart, font_head, "Rank"); + DrawTextF(xstart2, ystart, font_text, pos_text); + ystart += ystep_line; + DrawTextF(xstart1, ystart, font_head, "Player"); DrawTextF(xstart2, ystart, font_text, entry->name); ystart += ystep_line; -- 2.34.1