From: Rudolf Polzer Date: Tue, 27 Sep 2011 09:14:19 +0000 (+0200) Subject: implement forgetfulness more properly here too X-Git-Tag: xonotic-v0.6.0~73 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=04d72aedb295a3962be46f6be6c1646b36be5d74;p=xonotic%2Fxonotic.git implement forgetfulness more properly here too --- diff --git a/misc/tools/midi2cfg-ng.pl b/misc/tools/midi2cfg-ng.pl index 00c826ff..a2e7083f 100755 --- a/misc/tools/midi2cfg-ng.pl +++ b/misc/tools/midi2cfg-ng.pl @@ -473,7 +473,7 @@ sub busybot_note_on_bot($$$$$$$) } ++$bot->{seen}{$k0}{$k1}; - if($bot->{lastuse} && $channel == $bot->{lastchannel}) + if(($bot->{lastuse} // -666) >= $time - $time_forgetfulness && $channel == $bot->{lastchannel}) { $bot->{lastchannelsequence} += 1; }