parse-wormedit: include multiplayer levels in images master
authorMischa Poslawsky <wormy@shiar.org>
Mon, 26 Oct 2020 22:10:08 +0000 (23:10 +0100)
committerMischa Poslawsky <wormy@shiar.org>
Mon, 26 Oct 2020 22:35:50 +0000 (23:35 +0100)
Prefer complete output, especially for wormy003.lvl without singleplayer.

parse-wormedit

index 77bfc8e75b90c6991f2c50695803bb0d5478c557..06a261de805704128f6fd603206b17b6833927c2 100755 (executable)
@@ -161,8 +161,8 @@ default {
                @request = $opt{levels} =~ /(\d+)/g;
        }
        else {
-               # default to all singleplayer levels
-               @request = 0 .. $data->{levelcount}->{single} - 1;
+               # default to all levels
+               @request = 0 .. $data->{levelcount}->{total} - 1;
        }
        @request or die "no levels found or specified\n";
 
@@ -188,7 +188,7 @@ parse-wormedit - Wormy level data parser
 
 =head1 SYNOPSIS
 
- parse-wormedit [--format=<type>] [--levels=<number>] [--output=<file.ext>] <input.lvl>
+ parse-wormedit [--format=<type>] [--level=<number>] [--output=<file.ext>] <input.lvl>
 
 =head1 DESCRIPTION