Lua AI external CAs: change order of eval/exec parameters

The table with configuration parameters is needed much more frequently
than the persistent data variable, so it should come first.
This commit is contained in:
mattsc 2013-10-24 07:24:54 -07:00
parent 5a68773431
commit 6c39832c86

View file

@ -156,8 +156,8 @@ private:
void generate_code(std::string& eval, std::string& exec) {
std::string code = "wesnoth.require(\"" + location_ + "\")";
eval = "return " + code + ":evaluation((...):get_ai(), (...), {" + eval_parms_ + "})";
exec = code + ":execution((...):get_ai(), (...), {" + exec_parms_ + "})";
eval = "return " + code + ":evaluation((...):get_ai(), {" + eval_parms_ + "}, (...))";
exec = code + ":execution((...):get_ai(), {" + exec_parms_ + "}, (...))";
}
};