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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user