Author: ai0867
Date: Thu Jun 25 00:36:55 2009
New Revision: 36395
URL: http://svn.gna.org/viewcvs/wesnoth?rev=36395&view=rev
Log:
Petrified units no longer heal. (bug #13513)
Modified:
trunk/changelog
trunk/src/actions.cpp
Modified: trunk/changelog
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/changelog?rev=36395&r1=36394&r2=36395&view=diff
==============================================================================
--- trunk/changelog (original)
+++ trunk/changelog Thu Jun 25 00:36:55 2009
@@ -30,6 +30,7 @@
* WML Engine:
* Made new turn, turn X, side turn and turn refresh events synchronous.
(bug #10603)
+ * Petrified units no longer heal. (bug #13513)
* Miscellaneous and bugfixes:
* Add strict compilation to cmake
* Let cmake also use the CXXFLAGS and CFLAGS environment variables
Modified: trunk/src/actions.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/actions.cpp?rev=36395&r1=36394&r2=36395&view=diff
==============================================================================
--- trunk/src/actions.cpp (original)
+++ trunk/src/actions.cpp Thu Jun 25 00:36:55 2009
@@ -1673,7 +1673,8 @@
// We look for all allied units, then we see if our healer is near them.
for (unit_map::iterator i = units.begin(); i != units.end(); ++i) {
- if (!utils::string_bool(i->second.get_state("healable"),true))
+ if (!utils::string_bool(i->second.get_state("healable"),true) ||
+ i->second.incapacitated())
continue;
DBG_NG << "found healable unit at (" << i->first << ")\n";
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits