CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     David White <[EMAIL PROTECTED]> 05/01/30 03:46:48

Modified files:
        src            : actions.cpp 

Log message:
        fixed bug where a unit with greater than its maximum hitpoints couldn't 
be cured of poison

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/actions.cpp.diff?tr1=1.187&tr2=1.188&r1=text&r2=text

Patches:
Index: wesnoth/src/actions.cpp
diff -u wesnoth/src/actions.cpp:1.187 wesnoth/src/actions.cpp:1.188
--- wesnoth/src/actions.cpp:1.187       Sun Jan 30 03:44:51 2005
+++ wesnoth/src/actions.cpp     Sun Jan 30 03:46:48 2005
@@ -1,4 +1,4 @@
-/* $Id: actions.cpp,v 1.187 2005/01/30 03:44:51 Sirp Exp $ */
+/* $Id: actions.cpp,v 1.188 2005/01/30 03:46:48 Sirp Exp $ */
 /*
    Copyright (C) 2003 by David White <[EMAIL PROTECTED]>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -981,7 +981,7 @@
        get_adjacent_tiles(loc,adjacent);
        for(int n = 0; n != 6; ++n) {
                const unit_map::const_iterator u = units.find(adjacent[n]);
-               if(u != units.end() && u->second.hitpoints() < 
u->second.max_hitpoints()) {
+               if(u != units.end() && (u->second.hitpoints() < 
u->second.max_hitpoints() || u->second.poisoned())) {
                        const int unit_side = u->second.side();
 
                        //the healer won't heal an ally if there is a wounded 
unit on the same


Reply via email to