Added a TODO reminder for me...

...to check with crab about lua ai related issues of the multileader
recall/recruit aspects.
This commit is contained in:
Fabian Müller 2011-11-02 17:17:51 +00:00
parent 7845a1ba58
commit eaa1f5f2fe

View file

@ -266,6 +266,7 @@ static int cfun_ai_execute_recruit(lua_State *L)
where.x = lua_tonumber(L, 2) - 1;
where.y = lua_tonumber(L, 3) - 1;
}
//TODO fendrin: talk to Crab about the from argument.
map_location from = map_location::null_location;
ai::recruit_result_ptr recruit_result = ai::actions::execute_recruit_action(side,true,std::string(unit_name),where,from);
return transform_ai_action(L,recruit_result);
@ -280,6 +281,7 @@ static int cfun_ai_execute_recall(lua_State *L)
where.x = lua_tonumber(L, 2) - 1;
where.y = lua_tonumber(L, 3) - 1;
}
//TODO fendrin: talk to Crab about the from argument.
map_location from = map_location::null_location;
ai::recall_result_ptr recall_result = ai::actions::execute_recall_action(side,true,std::string(unit_id),where,from);
return transform_ai_action(L,recall_result);