fix smoothing job detection

develop
Myk Taylor 2023-04-23 23:28:50 -07:00
parent 4c1322c826
commit 74e1aa70d9
No known key found for this signature in database
2 changed files with 4 additions and 7 deletions

@ -36,6 +36,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
## New Plugins ## New Plugins
## Fixes ## Fixes
- `dig-now`: properly detect and complete smoothing designations that have been converted into active jobs
## Misc Improvements ## Misc Improvements
- `buildingplan`: planner panel is minimized by default and now remembers minimized state - `buildingplan`: planner panel is minimized by default and now remembers minimized state

@ -113,14 +113,10 @@ public:
case job_type::CarveUpDownStaircase: case job_type::CarveUpDownStaircase:
td.bits.dig = tile_dig_designation::UpDownStair; td.bits.dig = tile_dig_designation::UpDownStair;
break; break;
case job_type::DetailWall: case job_type::SmoothWall:
case job_type::DetailFloor: { case job_type::SmoothFloor:
df::tiletype tt = map.tiletypeAt(job->pos); td.bits.smooth = 1;
if (tileSpecial(tt) != df::tiletype_special::SMOOTH) {
td.bits.smooth = 1;
}
break; break;
}
case job_type::CarveTrack: case job_type::CarveTrack:
to.bits.carve_track_north = (job->item_category.whole >> 18) & 1; to.bits.carve_track_north = (job->item_category.whole >> 18) & 1;
to.bits.carve_track_south = (job->item_category.whole >> 19) & 1; to.bits.carve_track_south = (job->item_category.whole >> 19) & 1;