fix node auth url, NAN break on windows

This commit is contained in:
Stephen Birarda 2014-09-12 11:43:50 -07:00
parent 88a75a3585
commit 892e0e7cbf
2 changed files with 3 additions and 3 deletions

View file

@ -190,7 +190,7 @@ bool AddressManager::handleRelativeViewpoint(const QString& lookupString) {
tripleFloatRegex.cap(2).toFloat(),
tripleFloatRegex.cap(3).toFloat());
if (newPosition.x != NAN && newPosition.y != NAN && newPosition.z != NAN) {
if (!isNaN(newPosition.x) && !isNaN(newPosition.y) && !isNaN(newPosition.z)) {
glm::vec3 newOrientation;
// we may also have an orientation
if (lookupString[tripleFloatRegex.matchedLength() - 1] == QChar('/')
@ -200,7 +200,7 @@ bool AddressManager::handleRelativeViewpoint(const QString& lookupString) {
tripleFloatRegex.cap(2).toFloat(),
tripleFloatRegex.cap(3).toFloat());
if (newOrientation.x != NAN && newOrientation.y != NAN && newOrientation.z != NAN) {
if (!isNaN(newOrientation.x) && !isNaN(newOrientation.y) && !isNaN(newOrientation.z)) {
emit locationChangeRequired(newPosition, true, newOrientation);
return true;
} else {

View file

@ -33,7 +33,7 @@ const char SOLO_NODE_TYPES[2] = {
NodeType::AudioMixer
};
const QUrl DEFAULT_NODE_AUTH_URL = QUrl("http://localhost:3000");
const QUrl DEFAULT_NODE_AUTH_URL = QUrl("https://data.highfidelity.io");
LimitedNodeList* LimitedNodeList::_sharedInstance = NULL;