mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 18:56:22 +02:00
set _lastEdited to _created rather than to zero
This commit is contained in:
parent
44ebf37510
commit
75d468da9e
1 changed files with 2 additions and 3 deletions
|
@ -368,10 +368,9 @@ int EntityItem::readEntityDataFromBuffer(const unsigned char* data, int bytesLef
|
||||||
createdFromBuffer -= clockSkew;
|
createdFromBuffer -= clockSkew;
|
||||||
|
|
||||||
if (createdFromBuffer < _created) {
|
if (createdFromBuffer < _created) {
|
||||||
// the server claims that this entity has an older creation time
|
// the server claims that this entity has an older creation time so we accept it
|
||||||
// so we accept it and clear _lastEdited
|
|
||||||
_created = createdFromBuffer;
|
_created = createdFromBuffer;
|
||||||
_lastEdited = 0;
|
_lastEdited = _created;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wantDebug) {
|
if (wantDebug) {
|
||||||
|
|
Loading…
Reference in a new issue