Petrified units no longer heal. (bug #13513)

This commit is contained in:
Alexander van Gessel 2009-06-24 23:36:55 +01:00
parent dabf7577a5
commit 0d91848651
2 changed files with 3 additions and 1 deletions

View file

@ -30,6 +30,7 @@ Version 1.7.0+svn:
* 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

View file

@ -1673,7 +1673,8 @@ void calculate_healing(game_display& disp, const gamemap& map,
// 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";