]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/midi2cfg-ng.pl
bugfixes and midi2cfg changes from my secret branch
[xonotic/xonotic.git] / misc / tools / midi2cfg-ng.pl
index 4fe6a0cecb8b47a73a74b4c4f6e48ca8d359bdac..ad06b746807b931b671d7a59cd148cb38f0cd8dc 100755 (executable)
@@ -857,7 +857,7 @@ sub ConvertMIDI($$)
                                        my $votehigh = 0;
                                        my $votelow = 0;
                                        my $votegood = 0;
-                                       for(@busybots_allocated)
+                                       for(@busybots_allocated, grep { $_->{count} > 0 } values %$busybots)
                                        {
                                                next # I won't play on this channel
                                                        if defined $_->{channels} and not $_->{channels}->{$channel};