From: Holger Schemel Date: Wed, 11 May 2022 11:50:27 +0000 (+0200) Subject: moved code to start playing from hall of fame to separate function X-Git-Tag: 4.3.2.2~30 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=6dd9fc6c52279ac26e40ca3f196e22cd1eb4c686;p=rocksndiamonds.git moved code to start playing from hall of fame to separate function --- diff --git a/src/screens.c b/src/screens.c index ed086dc3..1bc0dcd6 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4339,6 +4339,11 @@ static int getAlignYOffsetFromTreeInfo(TreeInfo *ti) return align_yoffset; } +static void StartPlayingFromHallOfFame(void) +{ + StartGameActions(network.enabled, setup.autorecord, level.random_seed); +} + static void DrawChooseTree(TreeInfo **ti_ptr) { int fade_mask = REDRAW_FIELD; @@ -5094,8 +5099,8 @@ static void HandleChooseTree(int mx, int my, int dx, int dy, int button, { if (scores.continue_playing && scores.continue_on_return) { - StartGameActions(network.enabled, setup.autorecord, - level.random_seed); + StartPlayingFromHallOfFame(); + return; } else if (!scores.continue_on_return)