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