Only remove jobs that were created from a designation

develop
Pauli 2018-06-18 19:50:35 +03:00
parent 7c94620282
commit bcf9387ce9
2 changed files with 4 additions and 1 deletions

@ -1271,6 +1271,9 @@ bool MapExtras::MapCache::WriteAll()
auto block = iter->second; auto block = iter->second;
if (!block->designated_tiles.test(bpos.x+bpos.y*16)) if (!block->designated_tiles.test(bpos.x+bpos.y*16))
continue; continue;
bool is_designed = ENUM_ATTR(job_type,is_designation,job->job_type);
if (!is_designed)
continue;
// Remove designation job. DF will create a new one in the next tick // Remove designation job. DF will create a new one in the next tick
// processing. // processing.
Job::removeJob(job); Job::removeJob(job);

@ -1 +1 @@
Subproject commit c3025feb80c6f8e7441ea5dcf4f463a9cf89cbbd Subproject commit e8c309ec0ff7ec1b6d1db3945094cf79ce72d4b6