From: Holger Schemel Date: Sun, 18 Oct 2020 11:29:04 +0000 (+0200) Subject: removed redundant code X-Git-Tag: 4.2.1.0~43 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=4bfb87302a577130daa603481814b69afc84ab75 removed redundant code --- diff --git a/src/screens.c b/src/screens.c index 2ec1e941..403e4247 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4021,16 +4021,12 @@ static void HandleTypeNameExt(boolean initialize, Key key) SaveSetup(); is_active = FALSE; - - SetGameStatus(GAME_MODE_MAIN); } else if (key == KSYM_Escape) { strcpy(setup.player_name, last_player_name); is_active = FALSE; - - SetGameStatus(GAME_MODE_MAIN); } if (is_active) @@ -4043,6 +4039,8 @@ static void HandleTypeNameExt(boolean initialize, Key key) } else { + SetGameStatus(GAME_MODE_MAIN); + pos->width = strlen(setup.player_name) * font_width; sx = mSX + ALIGNED_TEXT_XPOS(pos);