only clear bid state when ownership actually changed

This commit is contained in:
Andrew Meadows 2018-05-18 10:28:45 -07:00
parent a9c193b672
commit 063c2564d1

View file

@ -707,7 +707,7 @@ int EntityItem::readEntityDataFromBuffer(const unsigned char* data, int bytesLef
somethingChanged = true;
}
}
if (bidIsSatisfied || _pendingOwnershipTimestamp < now - maxPingRoundTrip) {
if (bidIsSatisfied || (somethingChanged && _pendingOwnershipTimestamp < now - maxPingRoundTrip)) {
// the bid has been satisfied, or it has been invalidated by data sent AFTER the bid should have been received
// in either case: accept our fate and clear pending state
_pendingOwnershipState = PENDING_STATE_NOTHING;