| 350 | } |
| 351 | |
| 352 | static void bucket_watched_burrows(color_ostream & out, |
| 353 | map<int, PersistentDataItem *> &clearcut_burrows, |
| 354 | map<int, PersistentDataItem *> &chop_burrows) { |
| 355 | for (auto &c : watched_burrows) { |
| 356 | int id = c.get_int(BURROW_CONFIG_ID); |
| 357 | if (c.get_bool(BURROW_CONFIG_CLEARCUT)) |
| 358 | clearcut_burrows.emplace(id, &c); |
| 359 | else if (c.get_bool(BURROW_CONFIG_CHOP)) |
| 360 | chop_burrows.emplace(id, &c); |
| 361 | } |
| 362 | } |
| 363 | |
| 364 | typedef multimap<int, df::plant *, std::greater<int>> TreesBySize; |
| 365 |