diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llworld.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/llworld.cpp')
-rw-r--r-- | linden/indra/newview/llworld.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/linden/indra/newview/llworld.cpp b/linden/indra/newview/llworld.cpp index 2c2440c..66c4068 100644 --- a/linden/indra/newview/llworld.cpp +++ b/linden/indra/newview/llworld.cpp | |||
@@ -88,10 +88,6 @@ LLWorld::LLWorld() : | |||
88 | mLastPacketsIn(0), | 88 | mLastPacketsIn(0), |
89 | mLastPacketsOut(0), | 89 | mLastPacketsOut(0), |
90 | mLastPacketsLost(0), | 90 | mLastPacketsLost(0), |
91 | mMinRegionX(0), | ||
92 | mMaxRegionX(0), | ||
93 | mMinRegionY(0), | ||
94 | mMaxRegionY(0), | ||
95 | mSpaceTimeUSec(0) | 91 | mSpaceTimeUSec(0) |
96 | { | 92 | { |
97 | for (S32 i = 0; i < 8; i++) | 93 | for (S32 i = 0; i < 8; i++) |
@@ -139,7 +135,7 @@ LLViewerRegion* LLWorld::addRegion(const U64 ®ion_handle, const LLHost &host) | |||
139 | { | 135 | { |
140 | LLHost old_host = regionp->getHost(); | 136 | LLHost old_host = regionp->getHost(); |
141 | // region already exists! | 137 | // region already exists! |
142 | if (host == old_host && regionp->mAlive) | 138 | if (host == old_host && regionp->isAlive()) |
143 | { | 139 | { |
144 | // This is a duplicate for the same host and it's alive, don't bother. | 140 | // This is a duplicate for the same host and it's alive, don't bother. |
145 | return regionp; | 141 | return regionp; |
@@ -150,7 +146,7 @@ LLViewerRegion* LLWorld::addRegion(const U64 ®ion_handle, const LLHost &host) | |||
150 | llwarns << "LLWorld::addRegion exists, but old host " << old_host | 146 | llwarns << "LLWorld::addRegion exists, but old host " << old_host |
151 | << " does not match new host " << host << llendl; | 147 | << " does not match new host " << host << llendl; |
152 | } | 148 | } |
153 | if (!regionp->mAlive) | 149 | if (!regionp->isAlive()) |
154 | { | 150 | { |
155 | llwarns << "LLWorld::addRegion exists, but isn't alive" << llendl; | 151 | llwarns << "LLWorld::addRegion exists, but isn't alive" << llendl; |
156 | } | 152 | } |
@@ -422,7 +418,7 @@ BOOL LLWorld::positionRegionValidGlobal(const LLVector3d &pos_global) | |||
422 | F32 LLWorld::getMinAllowedZ(LLViewerObject* object) | 418 | F32 LLWorld::getMinAllowedZ(LLViewerObject* object) |
423 | { | 419 | { |
424 | F32 land_height = resolveLandHeightGlobal(object->getPositionGlobal()); | 420 | F32 land_height = resolveLandHeightGlobal(object->getPositionGlobal()); |
425 | F32 radius = 0.5f * object->getScale().magVec(); | 421 | F32 radius = 0.5f * object->getScale().length(); |
426 | return land_height - radius; | 422 | return land_height - radius; |
427 | } | 423 | } |
428 | 424 | ||
@@ -501,7 +497,7 @@ F32 LLWorld::resolveStepHeightGlobal(const LLVOAvatar* avatarp, const LLVector3d | |||
501 | } | 497 | } |
502 | 498 | ||
503 | // calculate the length of the segment | 499 | // calculate the length of the segment |
504 | F32 segment_length = (F32)((point_a - point_b).magVec()); | 500 | F32 segment_length = (F32)((point_a - point_b).length()); |
505 | if (0.0f == segment_length) | 501 | if (0.0f == segment_length) |
506 | { | 502 | { |
507 | intersection = point_a; | 503 | intersection = point_a; |
@@ -779,7 +775,7 @@ void LLWorld::printPacketsLost() | |||
779 | { | 775 | { |
780 | LLVector3d range = regionp->getCenterGlobal() - gAgent.getPositionGlobal(); | 776 | LLVector3d range = regionp->getCenterGlobal() - gAgent.getPositionGlobal(); |
781 | 777 | ||
782 | llinfos << regionp->getHost() << ", range: " << range.magVec() | 778 | llinfos << regionp->getHost() << ", range: " << range.length() |
783 | << " packets lost: " << cdp->getPacketsLost() << llendl; | 779 | << " packets lost: " << cdp->getPacketsLost() << llendl; |
784 | } | 780 | } |
785 | } | 781 | } |