From 8d168bdb4cd8de0c50e49ae6559392573b2b9621 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Sat, 21 Jul 2012 04:34:55 +0000 Subject: [PATCH] - add playername to console output when server waits for a client to catch up --- source/glest_game/network/connection_slot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/glest_game/network/connection_slot.cpp b/source/glest_game/network/connection_slot.cpp index 4364c901..2d020614 100644 --- a/source/glest_game/network/connection_slot.cpp +++ b/source/glest_game/network/connection_slot.cpp @@ -1153,7 +1153,7 @@ void ConnectionSlot::update(bool checkForNewClients,int lockedSlotIndex) { waitForLaggingClient = true; if(waitedForLaggingClient == false) { waitedForLaggingClient = true; - printf("*TESTING*: START Waiting for lagging client playerIndex = %d clientLagCount = %f [%f]\n",playerIndex,clientLagCount,clientLagTime); + printf("*TESTING*: START Waiting for lagging client playerIndex = %d [%s] clientLagCount = %f [%f]\n",playerIndex,name.c_str(),clientLagCount,clientLagTime); } } } @@ -1161,7 +1161,7 @@ void ConnectionSlot::update(bool checkForNewClients,int lockedSlotIndex) { } if(waitedForLaggingClient == true) { - printf("*TESTING*: FINISHED Waiting for lagging client playerIndex = %d\n",playerIndex); + printf("*TESTING*: FINISHED Waiting for lagging client playerIndex = %d [%s]\n",playerIndex,name.c_str()); } //if(chrono.getMillis() > 1) printf("In [%s::%s Line: %d] action running for msecs: %lld\n",__FILE__,__FUNCTION__,__LINE__,(long long int)chrono.getMillis());