fix a bug that was making the position updates protocol do too much updates (normally it's 1 per second

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13271 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hilnius
2013-07-18 16:37:40 +00:00
parent b9bf6b9e12
commit 97891cd5ef

View File

@@ -67,8 +67,9 @@ void KartUpdateProtocol::update()
{
static double time = 0;
double current_time = Time::getRealTime();
if (current_time > time + 1) // 1 updates per second
if (current_time > time + 1.0) // 1 updates per second
{
time = current_time;
if (m_listener->isServer())
{
NetworkString ns;