From: Holger Schemel Date: Thu, 24 Feb 2022 00:41:05 +0000 (+0100) Subject: added player rank to score info screen X-Git-Tag: 4.3.2.0~104 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=207fb81bc713079b7b1e0238996127711681717e;p=rocksndiamonds.git added player rank to score info screen --- 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;