From: Holger Schemel Date: Wed, 11 May 2022 12:00:25 +0000 (+0200) Subject: added playing next level when leaving hall of fame via back link X-Git-Tag: 4.3.2.2~27 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=cc76b9b12e99bc807966f4e59a4842d3d1ec8b3a;p=rocksndiamonds.git added playing next level when leaving hall of fame via back link --- diff --git a/src/libgame/system.h b/src/libgame/system.h index 065d8836..30ef7d79 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -819,6 +819,7 @@ #define BACKLINK_TEXT_SETUP ".. (setup menu)" #define BACKLINK_TEXT_PARENT ".. (parent directory)" #define BACKLINK_TEXT_BACK "back" +#define BACKLINK_TEXT_NEXT "next" #define TREE_INFOTEXT(t) ((t) == TREE_TYPE_SCORE_ENTRY ? \ INFOTEXT_SCORE_ENTRY : \ diff --git a/src/screens.c b/src/screens.c index 53ac39a7..58a9afae 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4362,7 +4362,11 @@ static void DrawChooseTree(TreeInfo **ti_ptr) { execSetupArtwork(); } - else // GAME_MODE_LEVELS + else if (game_status == GAME_MODE_SCORES && scores.continue_playing) + { + StartPlayingFromHallOfFame(); + } + else { SetGameStatus(GAME_MODE_MAIN); @@ -5307,6 +5311,9 @@ static void DrawHallOfFame_setScoreEntries(void) if (score_entry_current == NULL) score_entry_current = getFirstValidTreeInfoEntry(score_entries); + if (score_entries != NULL && scores.last_added >= 0) + setString(&score_entries->node_group->name, BACKLINK_TEXT_NEXT); + // ("score_entries" and "score_entry_current" may be NULL here) }