fixed game mode for name selection screen
authorHolger Schemel <info@artsoft.org>
Mon, 19 Oct 2020 19:12:51 +0000 (21:12 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 13 Dec 2020 23:57:58 +0000 (00:57 +0100)
src/conf_gfx.c
src/events.c
src/screens.c

index b46c8c5a0857fe8d5a5b013d78b3422465126ecd..009d28327c6a11125fd0470ea6f90d4cc0a65960 100644 (file)
@@ -6621,7 +6621,7 @@ struct ConfigInfo image_config[] =
   { "font.input_1.active.MAIN.width",          "32"                    },
   { "font.input_1.active.MAIN.height",         "32"                    },
   { "font.input_1.active.NAMES",               UNDEFINED_FILENAME      },
-  { "font.input_1.active.NAMES.clone_from",    "font.input_1.MAIN"     },
+  { "font.input_1.active.NAMES.clone_from",    "font.input_1.active.MAIN" },
   { "font.input_1.active.SETUP",               "RocksFontBig.png"      },
   { "font.input_1.active.SETUP.x",             "0"                     },
   { "font.input_1.active.SETUP.y",             "0"                     },
index a5bbf458ccc3f91381023161f01d945b75bd819a..1a6ac788b29aab28eca2f5918725cf3aeb09284d 100644 (file)
@@ -1749,6 +1749,7 @@ void HandleButton(int mx, int my, int button, int button_nr)
       break;
 
     case GAME_MODE_PSEUDO_TYPENAME:
+    case GAME_MODE_PSEUDO_TYPENAMES:
       HandleTypeName(KSYM_Return);
       break;
 
@@ -2301,6 +2302,7 @@ void HandleKey(Key key, int key_status)
   switch (game_status)
   {
     case GAME_MODE_PSEUDO_TYPENAME:
+    case GAME_MODE_PSEUDO_TYPENAMES:
       HandleTypeName(key);
       break;
 
index e2dba46087f486de974661359bdab8560f7feb38..f2f385e89adda9d219a9e235a6cbcd46bd515848 100644 (file)
@@ -4735,7 +4735,7 @@ static void HandleChooseTree(int mx, int my, int dx, int dy, int button,
          {
            if (mx >= sx1_edit_name && mx <= sx2_edit_name)
            {
-             SetGameStatus(GAME_MODE_PSEUDO_TYPENAME);
+             SetGameStatus(GAME_MODE_PSEUDO_TYPENAMES);
 
              DrawTypeName();