mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
get rid of _avatarEntityChangedTime
This commit is contained in:
parent
de4c9530c9
commit
1e849956c9
2 changed files with 1 additions and 5 deletions
|
@ -183,10 +183,8 @@ void Avatar::updateAvatarEntities() {
|
|||
// - setAvatarEntityData saves the bytes and sets _avatarEntityDataChanged = true
|
||||
// - (My)Avatar::simulate notices _avatarEntityDataChanged and here we are...
|
||||
|
||||
quint64 now = usecTimestampNow();
|
||||
|
||||
const static quint64 refreshTime = 3 * USECS_PER_SECOND;
|
||||
if (!_avatarEntityDataChanged && now - _avatarEntityChangedTime < refreshTime) {
|
||||
if (!_avatarEntityDataChanged) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -247,7 +245,6 @@ void Avatar::updateAvatarEntities() {
|
|||
|
||||
if (success) {
|
||||
setAvatarEntityDataChanged(false);
|
||||
_avatarEntityChangedTime = now;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -423,7 +423,6 @@ protected:
|
|||
AvatarEntityMap _avatarEntityData;
|
||||
bool _avatarEntityDataLocallyEdited { false };
|
||||
bool _avatarEntityDataChanged { false };
|
||||
quint64 _avatarEntityChangedTime { 0 };
|
||||
|
||||
private:
|
||||
friend void avatarStateFromFrame(const QByteArray& frameData, AvatarData* _avatar);
|
||||
|
|
Loading…
Reference in a new issue