more debug info in console
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13249 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -19,8 +19,8 @@ void NetworkWorld::update(float dt)
|
||||
ProtocolManager::getInstance()->getProtocol(PROTOCOL_SYNCHRONIZATION));
|
||||
if (protocol) // if this protocol exists, that's that we play online
|
||||
{
|
||||
Log::info("NetworkWorld", "Coutdown value is %d", protocol->getCountdown());
|
||||
if (protocol->getCountdown() > 0)
|
||||
Log::info("NetworkWorld", "Coutdown value is %lf", protocol->getCountdown());
|
||||
if (protocol->getCountdown() > 0.0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ void SynchronizationProtocol::asynchronousUpdate()
|
||||
m_pings_count[i]++;
|
||||
}
|
||||
}
|
||||
Log::info("SynchronizationProtocol", "Update! Countdown remaining : %d", m_countdown);
|
||||
Log::info("SynchronizationProtocol", "Update! Countdown remaining : %lf", m_countdown);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ class SynchronizationProtocol : public Protocol
|
||||
|
||||
void startCountdown(int ms_countdown);
|
||||
|
||||
int getCountdown() { return (int)(m_countdown*1000); }
|
||||
int getCountdown() { return (int)(m_countdown*1000.0); }
|
||||
|
||||
protected:
|
||||
std::vector<std::map<uint32_t, double> > m_pings;
|
||||
|
||||
Reference in New Issue
Block a user