mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 00:56:48 +02:00
Cleanup
This commit is contained in:
parent
c7c06590ac
commit
c26b03f480
2 changed files with 1 additions and 5 deletions
|
@ -89,9 +89,7 @@ void OverlayConductor::update(float dt) {
|
|||
}
|
||||
|
||||
bool isAtRest = updateAvatarIsAtRest();
|
||||
bool prevMoving = _currentMoving;
|
||||
bool isMoving = !isAtRest;
|
||||
bool movingChanged = prevMoving != isMoving;
|
||||
|
||||
bool shouldRecenter = false;
|
||||
|
||||
|
@ -101,7 +99,7 @@ void OverlayConductor::update(float dt) {
|
|||
shouldRecenter = true;
|
||||
}
|
||||
} else {
|
||||
if (myAvatar->getClearOverlayWhenMoving() && movingChanged && isMoving) {
|
||||
if (myAvatar->getClearOverlayWhenMoving() && isMoving) {
|
||||
_flags |= SuppressedByMove;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,8 +34,6 @@ private:
|
|||
|
||||
uint8_t _flags { SuppressedByMove };
|
||||
bool _hmdMode { false };
|
||||
|
||||
bool _currentMoving { false };
|
||||
|
||||
// used by updateAvatarIsAtRest
|
||||
uint64_t _desiredAtRestTimer { 0 };
|
||||
|
|
Loading…
Reference in a new issue