From a4a3e486d1600dd8ed8d8be17b9331fdcc2f2a5f Mon Sep 17 00:00:00 2001 From: hilnius Date: Sun, 21 Jul 2013 14:03:36 +0000 Subject: [PATCH] modifications that were done on server git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13305 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/network/protocols/controller_events_protocol.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/network/protocols/controller_events_protocol.cpp b/src/network/protocols/controller_events_protocol.cpp index 66fdf8b0c..23e40ecd1 100644 --- a/src/network/protocols/controller_events_protocol.cpp +++ b/src/network/protocols/controller_events_protocol.cpp @@ -42,6 +42,8 @@ void ControllerEventsProtocol::setup() { peer = peers[j]; } + Log::info("ControllerEventsProtocol", "Compared %s and %s", + peers[j]->getPlayerProfile()->kart_name.c_str(), karts[i]->getIdent().c_str()); } } else @@ -100,7 +102,7 @@ void ControllerEventsProtocol::notifyEvent(Event* event) } if (ns.size() > 0 && ns.size() != 9) { - Log::warn("ControllerEventProtocol", "The data seems corrupted."); + Log::warn("ControllerEventProtocol", "The data seems corrupted. Remains %d", ns.size()); return; } if (client_index < 0) @@ -119,6 +121,7 @@ void ControllerEventsProtocol::notifyEvent(Event* event) ns2.ai32(m_controllers[i].second->getClientServerToken()); ns2 += pure_message; m_listener->sendMessage(this, m_controllers[i].second, ns2, false); + //Log::info("ControllerEventsProtocol", "Sizes are %d and %d", ns2.size(), pure_message.size()); } } }