re-enable code that ignores old packets

This commit is contained in:
Seth Alves 2015-05-07 11:53:57 -07:00
parent d52a45b57e
commit f52747d8c1

View file

@ -402,9 +402,7 @@ int EntityItem::readEntityDataFromBuffer(const unsigned char* data, int bytesLef
lastEditedFromBufferAdjusted = now;
}
#if 0 // XXX
bool fromSameServerEdit = (lastEditedFromBuffer == _lastEditedFromRemoteInRemoteTime);
#endif
#ifdef WANT_DEBUG
qCDebug(entities) << "data from server **************** ";
@ -421,7 +419,6 @@ int EntityItem::readEntityDataFromBuffer(const unsigned char* data, int bytesLef
bool ignoreServerPacket = false; // assume we'll use this server packet
#if 0 // XXX Trying to eliminate this code as a possible source of deviation between interfaces
// If this packet is from the same server edit as the last packet we accepted from the server
// we probably want to use it.
if (fromSameServerEdit) {
@ -438,7 +435,6 @@ int EntityItem::readEntityDataFromBuffer(const unsigned char* data, int bytesLef
ignoreServerPacket = true;
}
}
#endif
if (ignoreServerPacket) {
overwriteLocalData = false;