Disabled [message]side_for= when user input is expected,

...since it causes OoS (out-of-turn query). (Fix for bug #17350.)
This commit is contained in:
Guillaume Melquiond 2010-12-19 20:26:50 +00:00
parent 04d8217e71
commit 7ec935255f

View file

@ -2496,6 +2496,11 @@ WML_HANDLER_FUNCTION(message, event_info, cfg)
std::string side_for_raw = cfg["side_for"];
if (!side_for_raw.empty())
{
if (has_input) {
lg::wml_error << "[message]side_for= can only be used for messages that don't query any user input.\n";
return;
}
bool side_for_show = false;
std::vector<std::string> side_for =