mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Fix some warnings and other minor details
This commit is contained in:
parent
9bccd75e34
commit
c0398224ef
4 changed files with 6 additions and 6 deletions
|
@ -4645,7 +4645,7 @@ void Server::DenyAccess(u16 peer_id, const std::wstring &reason)
|
|||
client->denied = true;
|
||||
|
||||
// If there are way too many clients, get rid of denied new ones immediately
|
||||
if(m_clients.size() > 2 * g_settings->getU16("max_users")){
|
||||
if((int)m_clients.size() > 2 * g_settings->getU16("max_users")){
|
||||
verbosestream<<"Server: DenyAccess: Too many clients; getting rid of "
|
||||
<<"peer_id="<<peer_id<<" immediately"<<std::endl;
|
||||
// Delete peer to stop sending it data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue