Skip to content

Commit

Permalink
digger: bail out early even when there's a planet with no arch min (e…
Browse files Browse the repository at this point in the history
….g. space station) and all arch mins busy - unless noaction specified
  • Loading branch information
ysth committed Oct 7, 2012
1 parent 818e66c commit 64c14b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion digger.pl
Expand Up @@ -48,7 +48,7 @@

emit("Looking at bodies ".join(', ', @body_names));

exit(0) unless grep { !($_->{work}{end}) || Client::parse_time($_->{work}{end}) < time() } values(%arches);
exit(0) unless $noaction || grep { $_ && !($_->{work}{end} && Client::parse_time($_->{work}{end}) >= time()) } values(%arches);

my %glyphs;
for my $body_id (@body_ids) {
Expand Down

0 comments on commit 64c14b9

Please sign in to comment.