From: Holger Schemel Date: Mon, 19 Oct 2020 19:12:51 +0000 (+0200) Subject: fixed game mode for name selection screen X-Git-Tag: 4.2.1.0~30 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=4de6ecd779b3e482721e8d769cd4ca28f18ab66e;p=rocksndiamonds.git fixed game mode for name selection screen --- diff --git a/src/conf_gfx.c b/src/conf_gfx.c index b46c8c5a..009d2832 100644 --- a/src/conf_gfx.c +++ b/src/conf_gfx.c @@ -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" }, diff --git a/src/events.c b/src/events.c index a5bbf458..1a6ac788 100644 --- a/src/events.c +++ b/src/events.c @@ -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; diff --git a/src/screens.c b/src/screens.c index e2dba460..f2f385e8 100644 --- a/src/screens.c +++ b/src/screens.c @@ -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();