CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: David White <[EMAIL PROTECTED]> 04/10/04 22:41:05
Modified files:
src : ai.cpp
Log message:
make the AI less inclined to attack after moving
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/ai.cpp.diff?tr1=1.118&tr2=1.119&r1=text&r2=text
Patches:
Index: wesnoth/src/ai.cpp
diff -u wesnoth/src/ai.cpp:1.118 wesnoth/src/ai.cpp:1.119
--- wesnoth/src/ai.cpp:1.118 Sun Sep 19 20:52:17 2004
+++ wesnoth/src/ai.cpp Mon Oct 4 22:41:05 2004
@@ -1,4 +1,4 @@
-/* $Id: ai.cpp,v 1.118 2004/09/19 20:52:17 Sirp Exp $ */
+/* $Id: ai.cpp,v 1.119 2004/10/04 22:41:05 Sirp Exp $ */
/*
Copyright (C) 2003 by David White <[EMAIL PROTECTED]>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -1288,6 +1288,10 @@
battle_stats bat_stats;
gamemap::location target;
int weapon = -1;
+
+ //the behavior of attacking anyone the AI ends up next to
+ //is disabled for the moment, to see how it works out
+ /*
for(int n = 0; n != 6; ++n) {
const unit_map::iterator enemy =
find_visible_unit(units_,adj[n],
map_,
@@ -1302,6 +1306,7 @@
break;
}
}
+ */
const location arrived_at =
move_unit(move.first,move.second,possible_moves);