From 040d018b8efbb86bc03c56c6a431175f36824ff0 Mon Sep 17 00:00:00 2001 From: myk002 Date: Wed, 7 Sep 2022 10:34:56 -0700 Subject: [PATCH] fix order of tree designation in autochop --- docs/changelog.txt | 1 + plugins/autochop.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index 8560cd4c5..4f6de25f9 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -43,6 +43,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: - `tags`: new built-in command to list the tool category tags and their definitions. tags associated with each tool are visible in the tool help and in the output of `ls`. ## Fixes +- `autochop`: designate largest trees for chopping first, instead of the smallest - `dig-now`: Fix direction of smoothed walls when adjacent to a door or floodgate - ``job.removeJob()``: ensure jobs are removed from the world list when they are canceled - `quickfort`: `Dreamfort ` blueprint set: declare the hospital zone before building the coffer; otherwise DF fails to stock the hospital with materials diff --git a/plugins/autochop.cpp b/plugins/autochop.cpp index d96e7a972..82c40934c 100644 --- a/plugins/autochop.cpp +++ b/plugins/autochop.cpp @@ -313,7 +313,7 @@ static int do_chop_designation(bool chop, bool count_only, int *skipped = nullpt { int count = 0; int estimated_yield = get_log_count(); - multimap trees_by_size; + multimap> trees_by_size; if (skipped) {