From: Rudolf Polzer Date: Tue, 27 Sep 2011 09:12:26 +0000 (+0200) Subject: if you must take a bot from another channel - pick the one which played least on it X-Git-Tag: xonotic-v0.6.0~74 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=92972e6be4a9f3d896a1a80d0dbc49644e90aa54;p=xonotic%2Fxonotic.git if you must take a bot from another channel - pick the one which played least on it --- diff --git a/misc/tools/midi2cfg-ng.pl b/misc/tools/midi2cfg-ng.pl index 52dbd3a9..00c826ff 100755 --- a/misc/tools/midi2cfg-ng.pl +++ b/misc/tools/midi2cfg-ng.pl @@ -548,7 +548,7 @@ sub botsort($$$$@) else { # better leave this one alone - --$q; + $q -= $_->{lastchannelsequence}; } } [$_, $q, rand]