Don't assign dead animals to pastures.

develop
Kelly Martin 2012-04-07 20:36:29 -05:00
parent dac84080c0
commit 2e6ee0ac84
1 changed files with 5 additions and 0 deletions

@ -1609,6 +1609,11 @@ command_result df_zone (color_ostream &out, vector <string> & parameters)
for(size_t c = 0; c < world->units.all.size(); c++) for(size_t c = 0; c < world->units.all.size(); c++)
{ {
df::unit *unit = world->units.all[c]; df::unit *unit = world->units.all[c];
// ignore dead units
if (isDead(unit))
continue;
if(find_race && getRaceName(unit) != target_race) if(find_race && getRaceName(unit) != target_race)
continue; continue;
// ignore own dwarves by default // ignore own dwarves by default