Author: jamit
Date: Wed Apr 4 13:21:14 2012
New Revision: 53772
URL: http://svn.gna.org/viewcvs/wesnoth?rev=53772&view=rev
Log:
No need to include border hexes in the AI's avoid aspect (Lua).
Modified:
trunk/src/ai/lua/core.cpp
Modified: trunk/src/ai/lua/core.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai/lua/core.cpp?rev=53772&r1=53771&r2=53772&view=diff
==============================================================================
--- trunk/src/ai/lua/core.cpp (original)
+++ trunk/src/ai/lua/core.cpp Wed Apr 4 13:21:14 2012
@@ -342,7 +342,7 @@
{
std::set<map_location> locs;
terrain_filter avoid = get_readonly_context(L).get_avoid();
- avoid.get_locations(locs, true); // is it true here?
+ avoid.get_locations(locs);
int sz = locs.size();
lua_createtable(L, sz, 0); // create a table that we'll use as an array
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits