mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 19:52:11 +00:00
add a comment
This commit is contained in:
parent
d05f5392ce
commit
2264e9961d
@ -643,6 +643,8 @@ static void on_replay_error(const std::string& message, bool /*b*/)
|
||||
// This allows to perform scripting in WML that will use the same code path as player actions, for example.
|
||||
WML_HANDLER_FUNCTION(do_command, /*event_info*/, cfg)
|
||||
{
|
||||
//TODO: don't allow this if we are in a whiteboard applied context.
|
||||
|
||||
static const std::set<std::string> allowed_tags = boost::assign::list_of("attack")("move")("recruit")("recall")("disband")("fire_event")("lua_ai");
|
||||
|
||||
const bool is_too_early = resources::gamedata->phase() != game_data::START && resources::gamedata->phase() != game_data::PLAY;
|
||||
|
Loading…
x
Reference in New Issue
Block a user