diff options
| author | Alexander Gavrilov | 2012-01-04 20:22:56 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-01-04 20:22:56 +0400 |
| commit | 4a596909684b261f9d22f2911abf86e7e9f5b6fc (patch) | |
| tree | 694e5030a58c41f6959633f0c574fe506c9446d3 /plugins/jobutils.cpp | |
| parent | 284009e873b95eed32fae62703ab3bc59e8e905b (diff) | |
| download | dfhack-4a596909684b261f9d22f2911abf86e7e9f5b6fc.tar.gz dfhack-4a596909684b261f9d22f2911abf86e7e9f5b6fc.tar.bz2 dfhack-4a596909684b261f9d22f2911abf86e7e9f5b6fc.tar.xz | |
Don't print empty parentheses without any flags to fill them.
Diffstat (limited to 'plugins/jobutils.cpp')
| -rw-r--r-- | plugins/jobutils.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/jobutils.cpp b/plugins/jobutils.cpp index bca8696f..c89ca2f4 100644 --- a/plugins/jobutils.cpp +++ b/plugins/jobutils.cpp @@ -418,8 +418,10 @@ static void print_job_item_details(Core *c, df::job *job, df::job_item *item) static void print_job_details(Core *c, df::job *job) { - c->con << "Job " << job->id << ": " << ENUM_KEY_STR(job_type,job->job_type) - << " (" << bitfieldToString(job->flags) << ")" << endl; + c->con << "Job " << job->id << ": " << ENUM_KEY_STR(job_type,job->job_type); + if (job->flags.whole) + c->con << " (" << bitfieldToString(job->flags) << ")"; + c->con << endl; MaterialInfo mat(job); if (mat.isValid() || job->material_category.whole) |
