Skip to content

Commit

Permalink
wesnoth.show_message_dialog: Don't expose has_input flag to Lua
Browse files Browse the repository at this point in the history
Adjustment of PR 841 (as PR #843)
  • Loading branch information
GregoryLundberg authored and CelticMinstrel committed Oct 26, 2016
1 parent 1baaaa4 commit 36ab1f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion data/lua/wml/message.lua
Expand Up @@ -230,7 +230,6 @@ local function message_user_choice(cfg, speaker, options, text_input)
label = text_input.label or "",
text = text_input.text or "",
max_length = input_max_size,
text_input_was_specified = "yes",
}
end

Expand Down
2 changes: 1 addition & 1 deletion src/scripting/lua_gui2.cpp
Expand Up @@ -280,7 +280,7 @@ int show_message_dialog(lua_State *L, CVideo & video)
input.caption = txt_cfg["label"].str();
input.text = txt_cfg["text"].str();
input.maximum_length = txt_cfg["max_length"].to_int(256);
input.text_input_was_specified = txt_cfg["text_input_was_specified"].to_bool(false);
input.text_input_was_specified = has_input;

gui2::twml_message_options options;
if (!lua_isnoneornil(L, 2)) {
Expand Down

0 comments on commit 36ab1f9

Please sign in to comment.