CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Guillaume Melquiond <[EMAIL PROTECTED]> 04/12/19 20:25:35
Modified files:
src : statistics.cpp
Log message:
Fix statistics for damages inflicted when defending.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/statistics.cpp.diff?tr1=1.11&tr2=1.12&r1=text&r2=text
Patches:
Index: wesnoth/src/statistics.cpp
diff -u wesnoth/src/statistics.cpp:1.11 wesnoth/src/statistics.cpp:1.12
--- wesnoth/src/statistics.cpp:1.11 Thu Nov 18 04:08:32 2004
+++ wesnoth/src/statistics.cpp Sun Dec 19 20:25:35 2004
@@ -308,7 +308,7 @@
if(res != MISSES) {
attacker_stats().damage_taken +=
bat_stats.damage_attacker_takes;
- defender_stats().damage_inflicted +=
bat_stats.damage_defender_takes;
+ defender_stats().damage_inflicted +=
bat_stats.damage_attacker_takes;
}
attacker_stats().expected_damage_taken +=
bat_stats.damage_attacker_takes *
bat_stats.chance_to_hit_attacker;