diff --git a/docs/changelog.txt b/docs/changelog.txt index 5629ef7f4..d444f914b 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -46,6 +46,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: - `startdwarf`: fixed on 64-bit Linux ## Misc Improvements +- Reduced time for designation jobs from tools like `digv` to be assigned workers - `embark-assistant`: switched to standard scrolling keys, improved spacing slightly ## API diff --git a/library/include/modules/MapCache.h b/library/include/modules/MapCache.h index 73a91d972..70ba0a858 100644 --- a/library/include/modules/MapCache.h +++ b/library/include/modules/MapCache.h @@ -55,7 +55,7 @@ class Block; struct BiomeInfo { // Determined by the 4-bit index in the designation bitfield - static const unsigned MAX_LAYERS = 16; + static constexpr unsigned MAX_LAYERS = 16; df::coord2d pos; int default_soil, default_stone, lava_stone; diff --git a/library/modules/MapCache.cpp b/library/modules/MapCache.cpp index d5c2e6c81..bbb592c2d 100644 --- a/library/modules/MapCache.cpp +++ b/library/modules/MapCache.cpp @@ -79,10 +79,6 @@ using df::global::world; extern bool GetLocalFeature(t_feature &feature, df::coord2d rgn_pos, int32_t index); -#ifdef LINUX_BUILD -const unsigned MapExtras::BiomeInfo::MAX_LAYERS; -#endif - const BiomeInfo MapCache::biome_stub = { df::coord2d(), -1, -1, -1, -1, @@ -742,6 +738,7 @@ bool MapExtras::Block::Write () { COPY(block->designation, designation); block->flags.bits.designated = true; + block->dsgn_check_cooldown = 0; dirty_designations = false; } if(dirty_tiles || dirty_veins)