Permalink
Browse files

digger: bail out early even when there's a planet with no arch min (e…

….g. space station) and all arch mins busy - unless noaction specified
  • Loading branch information...
1 parent 818e66c commit 64c14b9ddf25ad3a26fc71b306bad9cea75d7033 @ysth ysth committed Oct 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 digger.pl
View
@@ -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) {

0 comments on commit 64c14b9

Please sign in to comment.