let vanilla blinking take over when possible

develop
Myk Taylor 2023-09-10 21:14:59 -07:00
parent 73b5f0ced1
commit 70b48dfa6f
No known key found for this signature in database
1 changed files with 8 additions and 2 deletions

@ -5,6 +5,7 @@
#include "modules/EventManager.h" #include "modules/EventManager.h"
#include "modules/Gui.h" #include "modules/Gui.h"
#include "modules/Job.h"
#include "modules/Maps.h" #include "modules/Maps.h"
#include "modules/Screen.h" #include "modules/Screen.h"
#include "modules/Textures.h" #include "modules/Textures.h"
@ -255,9 +256,13 @@ public:
df::tile_designation td; df::tile_designation td;
df::tile_occupancy to; df::tile_occupancy to;
bool keep_if_taken = false;
switch (job->job_type) { switch (job->job_type) {
case df::job_type::SmoothWall: case df::job_type::SmoothWall:
case df::job_type::SmoothFloor: case df::job_type::SmoothFloor:
keep_if_taken = true;
// fallthrough
case df::job_type::CarveFortification: case df::job_type::CarveFortification:
td.bits.smooth = 1; td.bits.smooth = 1;
break; break;
@ -272,8 +277,9 @@ public:
to.bits.carve_track_east = (job->item_category.whole >> 21) & 1; to.bits.carve_track_east = (job->item_category.whole >> 21) & 1;
break; break;
default: default:
break; continue;
} }
if (keep_if_taken || !Job::getWorker(job))
designations.emplace(job->pos, designation(job->pos, td, to)); designations.emplace(job->pos, designation(job->pos, td, to));
} }
} }