diff options
| author | Kelly Martin | 2012-04-07 20:36:29 -0500 |
|---|---|---|
| committer | Kelly Martin | 2012-04-07 20:36:29 -0500 |
| commit | 2e6ee0ac849e13b463e63ff5cd1dc8faad8480ba (patch) | |
| tree | 7a53e9bbddc369d5cd083605d95687ca7323c8d8 /plugins/zone.cpp | |
| parent | dac84080c074811e6dc398415bd374f663067169 (diff) | |
| download | dfhack-2e6ee0ac849e13b463e63ff5cd1dc8faad8480ba.tar.gz dfhack-2e6ee0ac849e13b463e63ff5cd1dc8faad8480ba.tar.bz2 dfhack-2e6ee0ac849e13b463e63ff5cd1dc8faad8480ba.tar.xz | |
Don't assign dead animals to pastures.
Diffstat (limited to 'plugins/zone.cpp')
| -rw-r--r-- | plugins/zone.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/zone.cpp b/plugins/zone.cpp index c66ec6b5..6e87d75f 100644 --- a/plugins/zone.cpp +++ b/plugins/zone.cpp @@ -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++) { df::unit *unit = world->units.all[c]; + + // ignore dead units + if (isDead(unit)) + continue; + if(find_race && getRaceName(unit) != target_race) continue; // ignore own dwarves by default |
