diff options
author | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
commit | b2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch) | |
tree | 3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/newview/llselectmgr.cpp | |
parent | Second Life viewer sources 1.14.0.1 (diff) | |
download | meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2 meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz |
Second Life viewer sources 1.15.0.2
Diffstat (limited to 'linden/indra/newview/llselectmgr.cpp')
-rw-r--r-- | linden/indra/newview/llselectmgr.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/linden/indra/newview/llselectmgr.cpp b/linden/indra/newview/llselectmgr.cpp index 4e0cb17..598ded9 100644 --- a/linden/indra/newview/llselectmgr.cpp +++ b/linden/indra/newview/llselectmgr.cpp | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2001-2007, Linden Research, Inc. | 5 | * Copyright (c) 2001-2007, Linden Research, Inc. |
6 | * | 6 | * |
7 | * Second Life Viewer Source Code | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | 8 | * The source code in this file ("Source Code") is provided by Linden Lab |
8 | * to you under the terms of the GNU General Public License, version 2.0 | 9 | * to you under the terms of the GNU General Public License, version 2.0 |
9 | * ("GPL"), unless you have obtained a separate licensing agreement | 10 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -51,7 +52,6 @@ | |||
51 | #include "lldrawable.h" | 52 | #include "lldrawable.h" |
52 | #include "llfloaterinspect.h" | 53 | #include "llfloaterinspect.h" |
53 | #include "llfloaterproperties.h" | 54 | #include "llfloaterproperties.h" |
54 | #include "llfloaterrate.h" | ||
55 | #include "llfloaterreporter.h" | 55 | #include "llfloaterreporter.h" |
56 | #include "llfloatertools.h" | 56 | #include "llfloatertools.h" |
57 | #include "llframetimer.h" | 57 | #include "llframetimer.h" |
@@ -152,8 +152,8 @@ struct LLDeRezInfo | |||
152 | 152 | ||
153 | LLObjectSelection* get_null_object_selection() | 153 | LLObjectSelection* get_null_object_selection() |
154 | { | 154 | { |
155 | static LLObjectSelectionHandle null_ptr(new LLObjectSelection()); | 155 | static LLObjectSelection null_selection; |
156 | return (LLObjectSelection*)null_ptr; | 156 | return &null_selection;; |
157 | } | 157 | } |
158 | 158 | ||
159 | 159 | ||
@@ -561,7 +561,7 @@ void LLSelectMgr::deselectObjectAndFamily(LLViewerObject* object, BOOL send_to_s | |||
561 | msg->addU32Fast(_PREHASH_ObjectLocalID, (objects[i])->getLocalID()); | 561 | msg->addU32Fast(_PREHASH_ObjectLocalID, (objects[i])->getLocalID()); |
562 | select_count++; | 562 | select_count++; |
563 | 563 | ||
564 | if(msg->mCurrentSendTotal >= MTUBYTES || select_count >= MAX_OBJECTS_PER_PACKET) | 564 | if(msg->isSendFull(NULL) || select_count >= MAX_OBJECTS_PER_PACKET) |
565 | { | 565 | { |
566 | msg->sendReliable(regionp->getHost() ); | 566 | msg->sendReliable(regionp->getHost() ); |
567 | select_count = 0; | 567 | select_count = 0; |
@@ -2078,7 +2078,7 @@ void LLSelectMgr::packGodlikeHead(void* user_data) | |||
2078 | void LLSelectMgr::packObjectIDAsParam(LLSelectNode* node, void *) | 2078 | void LLSelectMgr::packObjectIDAsParam(LLSelectNode* node, void *) |
2079 | { | 2079 | { |
2080 | char buf [MAX_STRING]; /* Flawfinder: ignore */ | 2080 | char buf [MAX_STRING]; /* Flawfinder: ignore */ |
2081 | snprintf(buf, MAX_STRING, "%u", node->getObject()->getLocalID()); /* Flawfinder: ignore */ | 2081 | snprintf(buf, MAX_STRING, "%u", node->getObject()->getLocalID()); /* Flawfinder: ignore */ |
2082 | gMessageSystem->nextBlock("ParamList"); | 2082 | gMessageSystem->nextBlock("ParamList"); |
2083 | gMessageSystem->addString("Parameter", buf); | 2083 | gMessageSystem->addString("Parameter", buf); |
2084 | } | 2084 | } |
@@ -4198,7 +4198,7 @@ void LLSelectMgr::sendListToRegions(const LLString& message_name, | |||
4198 | 4198 | ||
4199 | // if to same simulator and message not too big | 4199 | // if to same simulator and message not too big |
4200 | if ((current_region == last_region) | 4200 | if ((current_region == last_region) |
4201 | && (gMessageSystem->mCurrentSendTotal < MTUBYTES) | 4201 | && (! gMessageSystem->isSendFull(NULL)) |
4202 | && (objects_in_this_packet < MAX_OBJECTS_PER_PACKET)) | 4202 | && (objects_in_this_packet < MAX_OBJECTS_PER_PACKET)) |
4203 | { | 4203 | { |
4204 | // add another instance of the body of the data | 4204 | // add another instance of the body of the data |
@@ -4233,7 +4233,7 @@ void LLSelectMgr::sendListToRegions(const LLString& message_name, | |||
4233 | } | 4233 | } |
4234 | 4234 | ||
4235 | // flush messages | 4235 | // flush messages |
4236 | if (gMessageSystem->mCurrentSendTotal > 0) | 4236 | if (gMessageSystem->getCurrentSendTotal() > 0) |
4237 | { | 4237 | { |
4238 | gMessageSystem->sendReliable( current_region->getHost()); | 4238 | gMessageSystem->sendReliable( current_region->getHost()); |
4239 | packets_sent++; | 4239 | packets_sent++; |
@@ -5164,7 +5164,8 @@ void LLSelectNode::saveTextureScaleRatios() | |||
5164 | F32 s,t; | 5164 | F32 s,t; |
5165 | const LLTextureEntry* tep = mObject->getTE(i); | 5165 | const LLTextureEntry* tep = mObject->getTE(i); |
5166 | tep->getScale(&s,&t); | 5166 | tep->getScale(&s,&t); |
5167 | U32 s_axis, t_axis; | 5167 | U32 s_axis = 0; |
5168 | U32 t_axis = 0; | ||
5168 | 5169 | ||
5169 | gSelectMgr->getTESTAxes(mObject, i, &s_axis, &t_axis); | 5170 | gSelectMgr->getTESTAxes(mObject, i, &s_axis, &t_axis); |
5170 | 5171 | ||
@@ -6238,7 +6239,6 @@ BOOL LLObjectSelection::getOwnershipCost(S32 &cost) | |||
6238 | } | 6239 | } |
6239 | 6240 | ||
6240 | 6241 | ||
6241 | |||
6242 | //----------------------------------------------------------------------------- | 6242 | //----------------------------------------------------------------------------- |
6243 | // getObjectCount() | 6243 | // getObjectCount() |
6244 | //----------------------------------------------------------------------------- | 6244 | //----------------------------------------------------------------------------- |
@@ -6574,3 +6574,4 @@ LLViewerObject* LLObjectSelection::getFirstMoveableObject(BOOL get_root) | |||
6574 | 6574 | ||
6575 | return object; | 6575 | return object; |
6576 | } | 6576 | } |
6577 | |||