Author: suokko
Date: Sun Sep 14 18:11:02 2008
New Revision: 29461

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29461&view=rev
Log:
Fixed AI trying to skirmishing preventation not to check start location

Modified:
    trunk/src/ai.cpp

Modified: trunk/src/ai.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai.cpp?rev=29461&r1=29460&r2=29461&view=diff
==============================================================================
--- trunk/src/ai.cpp (original)
+++ trunk/src/ai.cpp Sun Sep 14 18:11:02 2008
@@ -553,7 +553,7 @@
                          }
 
                                // Check if there are any invisible units that 
we uncover
-                               for(std::vector<location>::iterator i = 
steps.begin(); i != steps.end(); ++i) {
+                               for(std::vector<location>::iterator i = 
steps.begin()+1; i != steps.end(); ++i) {
                                        location adj[6];
                                        get_adjacent_tiles(*i,adj);
 


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to