[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src ai.cpp ai_attack.cpp
From: |
David White |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src ai.cpp ai_attack.cpp |
Date: |
Sun, 19 Sep 2004 16:58:33 -0400 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: David White <address@hidden> 04/09/19 20:52:17
Modified files:
src : ai.cpp ai_attack.cpp
Log message:
adjustment to previous checkin
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/ai.cpp.diff?tr1=1.117&tr2=1.118&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/ai_attack.cpp.diff?tr1=1.50&tr2=1.51&r1=text&r2=text
Patches:
Index: wesnoth/src/ai.cpp
diff -u wesnoth/src/ai.cpp:1.117 wesnoth/src/ai.cpp:1.118
--- wesnoth/src/ai.cpp:1.117 Sun Sep 19 20:42:35 2004
+++ wesnoth/src/ai.cpp Sun Sep 19 20:52:17 2004
@@ -1,4 +1,4 @@
-/* $Id: ai.cpp,v 1.117 2004/09/19 20:42:35 Sirp Exp $ */
+/* $Id: ai.cpp,v 1.118 2004/09/19 20:52:17 Sirp Exp $ */
/*
Copyright (C) 2003 by David White <address@hidden>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -1987,6 +1987,6 @@
}
const config& parms = current_team().ai_parameters();
- attack_depth_ =
maximum<int>(1,lexical_cast_default<int>(parms["attack_depth"],4));
+ attack_depth_ =
maximum<int>(1,lexical_cast_default<int>(parms["attack_depth"],5));
return attack_depth_;
}
Index: wesnoth/src/ai_attack.cpp
diff -u wesnoth/src/ai_attack.cpp:1.50 wesnoth/src/ai_attack.cpp:1.51
--- wesnoth/src/ai_attack.cpp:1.50 Sun Sep 19 20:42:35 2004
+++ wesnoth/src/ai_attack.cpp Sun Sep 19 20:52:17 2004
@@ -1,4 +1,4 @@
-/* $Id: ai_attack.cpp,v 1.50 2004/09/19 20:42:35 Sirp Exp $ */
+/* $Id: ai_attack.cpp,v 1.51 2004/09/19 20:52:17 Sirp Exp $ */
/*
Copyright (C) 2003 by David White <address@hidden>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -43,7 +43,7 @@
//this function is called fairly frequently, so interact with the user
here.
user_interact();
- if(cur_analysis.movements.size() > size_t(attack_depth()))
+ if(cur_analysis.movements.size() >= size_t(attack_depth()))
return;
static double best_results[6];
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Wesnoth-cvs-commits] wesnoth/src ai.cpp ai_attack.cpp,
David White <=