Author: mordante
Date: Thu Sep 18 21:42:07 2008
New Revision: 29538
URL: http://svn.gna.org/viewcvs/wesnoth?rev=29538&view=rev
Log:
Fix a compiler warning.
Modified:
trunk/src/ai_attack.cpp
Modified: trunk/src/ai_attack.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai_attack.cpp?rev=29538&r1=29537&r2=29538&view=diff
==============================================================================
--- trunk/src/ai_attack.cpp (original)
+++ trunk/src/ai_attack.cpp Thu Sep 18 21:42:07 2008
@@ -188,8 +188,9 @@
unit_ability_list abil =
unit_itor->second.get_abilities("leadership",tiles[j]);
int best_leadership_bonus = abil.highest("value").first;
double leadership_bonus =
static_cast<double>(best_leadership_bonus+100)/100.0;
- if (leadership_bonus > 1.1)
+ if (leadership_bonus > 1.1) {
ERR_AI << unit_itor->second.name() << " is
getting leadership " << leadership_bonus << "\n";
+ }
// Check to see whether this move would be a backstab.
int backstab_bonus = 1;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits