From ff36071d93266c1dd18708f8924d80aa1af5b33e Mon Sep 17 00:00:00 2001 From: sapier Date: Sun, 29 Jun 2014 17:55:21 +0200 Subject: Don't spam server console on player/playersao error but just drop the affected client --- src/server.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/server.cpp b/src/server.cpp index 122ea993d..1223136b4 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -1789,18 +1789,20 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id) } Player *player = m_env->getPlayer(peer_id); - if(player == NULL){ + if(player == NULL) { errorstream<<"Server::ProcessData(): Cancelling: " "No player for peer_id="<getPlayerSAO(); - if(playersao == NULL){ + if(playersao == NULL) { errorstream<<"Server::ProcessData(): Cancelling: " "No player object for peer_id="<