engine: server: don't bother printing about unsupported connectionless packets if sv_log_outofband is set to 0

This commit is contained in:
Alibek Omarov 2025-02-26 17:06:12 +03:00
parent 4eaa8ab40f
commit cb5dffd554

View file

@ -3196,10 +3196,8 @@ void SV_ConnectionlessPacket( netadr_t from, sizebuf_t *msg )
if( len > 0 )
Netchan_OutOfBand( NS_SERVER, from, len, (byte*)buf );
}
else
{
else if( sv_log_outofband.value )
Con_DPrintf( S_ERROR "bad connectionless packet from %s:\n%s\n", NET_AdrToString( from ), args );
}
}
}