1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Remove weird command procession limit

it was set to 1 too, wtf?!
This commit is contained in:
sfan5 2024-01-05 11:46:32 +01:00
parent abf3142b26
commit 9f684eac92
4 changed files with 2 additions and 9 deletions

View file

@ -1158,16 +1158,13 @@ bool UDPPeer::processReliableSendCommand(
void UDPPeer::RunCommandQueues(
unsigned int max_packet_size,
unsigned int maxcommands,
unsigned int maxtransfer)
{
for (Channel &channel : channels) {
unsigned int commands_processed = 0;
if ((!channel.queued_commands.empty()) &&
(channel.queued_reliables.size() < maxtransfer) &&
(commands_processed < maxcommands)) {
(channel.queued_reliables.size() < maxtransfer)) {
try {
ConnectionCommandPtr c = channel.queued_commands.front();