wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src statistics.cpp


From: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth/src statistics.cpp
Date: Sun, 19 Dec 2004 15:36:58 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <address@hidden>    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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]