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:
hilnius
2013-07-15 15:06:11 +00:00
parent 1d1728553d
commit e954bde7ee
3 changed files with 4 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -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);
}

View File

@@ -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;