Don't print empty parentheses without any flags to fill them.

develop
Alexander Gavrilov 2012-01-04 20:22:56 +04:00
parent 284009e873
commit 4a59690968
2 changed files with 5 additions and 3 deletions

@ -1 +1 @@
Subproject commit 4857a4f5af1a4174e5478f1221552826a60b36c5 Subproject commit e61e696e2a2bb6b24a86c9c01a26f3133509585e

@ -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) static void print_job_details(Core *c, df::job *job)
{ {
c->con << "Job " << job->id << ": " << ENUM_KEY_STR(job_type,job->job_type) c->con << "Job " << job->id << ": " << ENUM_KEY_STR(job_type,job->job_type);
<< " (" << bitfieldToString(job->flags) << ")" << endl; if (job->flags.whole)
c->con << " (" << bitfieldToString(job->flags) << ")";
c->con << endl;
MaterialInfo mat(job); MaterialInfo mat(job);
if (mat.isValid() || job->material_category.whole) if (mat.isValid() || job->material_category.whole)