removed redundant code
authorHolger Schemel <info@artsoft.org>
Sun, 18 Oct 2020 11:29:04 +0000 (13:29 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 13 Dec 2020 23:57:57 +0000 (00:57 +0100)
src/screens.c

index 2ec1e94155f3b52ad29b53f6d2dc8da49f5ecabb..403e4247a0b33e878a9d956b36ad938238dc817f 100644 (file)
@@ -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);