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:
parent
5a68773431
commit
6c39832c86
1 changed files with 2 additions and 2 deletions
|
@ -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_ + "}, (...))";
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue