mirror of
https://github.com/lubosz/overte.git
synced 2025-08-29 20:27:48 +02:00
only clear bid state when ownership actually changed
This commit is contained in:
parent
a9c193b672
commit
063c2564d1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue