If a client should have received a state in the future, use it (long

term this should not happen, since the server is behind the clients).
This commit is contained in:
hiker
2017-01-22 17:41:47 +11:00
parent 414c51a558
commit d038848c2e

View File

@@ -247,6 +247,13 @@ void RewindManager::playEventsTill(float time)
++m_rewind_queue;
if(ri->isEvent())
ri->rewind();
else if (ri->isState())
{
Log::warn("RewindManager",
"Client has received state in the future: at %f state %f",
World::getWorld()->getTime(), ri->getTime());
ri->rewind();
}
}
m_is_rewinding = false;
} // playEventsTill