mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-02-20 12:36:52 +00:00
percussion fixes
This commit is contained in:
parent
04d72aedb2
commit
3affa1daab
@ -539,16 +539,19 @@ sub botsort($$$$@)
|
||||
map
|
||||
{
|
||||
my $q = 0;
|
||||
if(($_->{lastuse} // -666) >= $time - $time_forgetfulness)
|
||||
if($channel != 10) # percussion just should do round robin
|
||||
{
|
||||
if($channel == $_->{lastchannel})
|
||||
if(($_->{lastuse} // -666) >= $time - $time_forgetfulness)
|
||||
{
|
||||
$q += $_->{lastchannelsequence};
|
||||
}
|
||||
else
|
||||
{
|
||||
# better leave this one alone
|
||||
$q -= $_->{lastchannelsequence};
|
||||
if($channel == $_->{lastchannel})
|
||||
{
|
||||
$q += $_->{lastchannelsequence};
|
||||
}
|
||||
else
|
||||
{
|
||||
# better leave this one alone
|
||||
$q -= $_->{lastchannelsequence};
|
||||
}
|
||||
}
|
||||
}
|
||||
[$_, $q, rand]
|
||||
|
Loading…
Reference in New Issue
Block a user