[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src ai.cpp
From: |
Guillaume Melquiond |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src ai.cpp |
Date: |
Sun, 20 Feb 2005 17:04:30 -0500 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Guillaume Melquiond <address@hidden> 05/02/20 22:04:29
Modified files:
src : ai.cpp
Log message:
Fix typo in AI recruitment. Bats are back!
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/ai.cpp.diff?tr1=1.138&tr2=1.139&r1=text&r2=text
Patches:
Index: wesnoth/src/ai.cpp
diff -u wesnoth/src/ai.cpp:1.138 wesnoth/src/ai.cpp:1.139
--- wesnoth/src/ai.cpp:1.138 Thu Feb 17 23:47:12 2005
+++ wesnoth/src/ai.cpp Sun Feb 20 22:04:29 2005
@@ -1,4 +1,4 @@
-/* $Id: ai.cpp,v 1.138 2005/02/17 23:47:12 j_daniel Exp $ */
+/* $Id: ai.cpp,v 1.139 2005/02/20 22:04:29 silene Exp $ */
/*
Copyright (C) 2003 by David White <address@hidden>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -1553,9 +1553,8 @@
for(std::map<std::string,int>::iterator j =
unit_movement_scores_.begin(); j != unit_movement_scores_.end(); ++j) {
const game_data::unit_type_map::const_iterator info =
gameinfo_.unit_types.find(j->first);
- if(info == gameinfo_.unit_types.end()) {
- }
- continue;
+ if (info == gameinfo_.unit_types.end())
+ continue;
const int best_score = best_scores[info->second.usage()];
if(best_score > 0) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Wesnoth-cvs-commits] wesnoth/src ai.cpp,
Guillaume Melquiond <=