mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-10 08:12:08 +02:00
Fix inverted comparaison
This commit is contained in:
parent
b4ea32bbb6
commit
3283c5eaec
2 changed files with 1 additions and 2 deletions
|
@ -95,7 +95,6 @@ int OctreeQuery::getBroadcastData(unsigned char* destinationBuffer) {
|
|||
int OctreeQuery::parseData(ReceivedMessage& message) {
|
||||
|
||||
const unsigned char* startPosition = reinterpret_cast<const unsigned char*>(message.getRawMessage());
|
||||
const unsigned char* endPosition = startPosition + message.getSize();
|
||||
const unsigned char* sourceBuffer = startPosition;
|
||||
|
||||
// unpack the connection ID
|
||||
|
|
|
@ -45,7 +45,7 @@ bool ConicalViewFrustum::isVerySimilar(const ConicalViewFrustum& other) const {
|
|||
const float MIN_RELATIVE_ERROR = 0.01f; // 1%
|
||||
|
||||
return glm::distance2(_position, other._position) < MIN_POSITION_SLOP_SQUARED &&
|
||||
angleBetween(_direction, other._direction) > MIN_ANGLE_BETWEEN &&
|
||||
angleBetween(_direction, other._direction) < MIN_ANGLE_BETWEEN &&
|
||||
closeEnough(_angle, other._angle, MIN_RELATIVE_ERROR) &&
|
||||
closeEnough(_farClip, other._farClip, MIN_RELATIVE_ERROR) &&
|
||||
closeEnough(_radius, other._radius, MIN_RELATIVE_ERROR);
|
||||
|
|
Loading…
Reference in a new issue