Fixed several compile errors with VS2005
This commit is contained in:
@@ -254,9 +254,9 @@ LLViewerObject::~LLViewerObject()
|
||||
{
|
||||
if(iter->second != NULL)
|
||||
{
|
||||
// <edit>
|
||||
// There was a crash here
|
||||
// </edit>
|
||||
// <edit>
|
||||
// There was a crash here
|
||||
// </edit>
|
||||
delete iter->second->data;
|
||||
delete iter->second;
|
||||
}
|
||||
@@ -1880,11 +1880,11 @@ U32 LLViewerObject::processUpdateMessage(LLMessageSystem *mesgsys,
|
||||
|
||||
if ( gShowObjectUpdates )
|
||||
{
|
||||
// <edit> We want to see updates from our own avatar
|
||||
//if (!((mPrimitiveCode == LL_PCODE_LEGACY_AVATAR) && (((LLVOAvatar *) this)->mIsSelf))
|
||||
// && mRegionp)
|
||||
if(mRegionp)
|
||||
// </edit>
|
||||
// <edit> We want to see updates from our own avatar
|
||||
//if (!((mPrimitiveCode == LL_PCODE_LEGACY_AVATAR) && (((LLVOAvatar *) this)->mIsSelf))
|
||||
// && mRegionp)
|
||||
if(mRegionp)
|
||||
// </edit>
|
||||
{
|
||||
LLViewerObject* object = gObjectList.createObjectViewer(LL_PCODE_LEGACY_TEXT_BUBBLE, mRegionp);
|
||||
LLVOTextBubble* bubble = (LLVOTextBubble*) object;
|
||||
@@ -1935,11 +1935,11 @@ U32 LLViewerObject::processUpdateMessage(LLMessageSystem *mesgsys,
|
||||
|
||||
if (needs_refresh)
|
||||
{
|
||||
// <edit>
|
||||
if(isChanged(MOVED)) // Update "center" if this or children are selected,
|
||||
// and translate, scale, or rotate occurred on this.
|
||||
// Leave dialog refresh to happen always, as before.
|
||||
// </edit>
|
||||
// <edit>
|
||||
if(isChanged(MOVED)) // Update "center" if this or children are selected,
|
||||
// and translate, scale, or rotate occurred on this.
|
||||
// Leave dialog refresh to happen always, as before.
|
||||
// </edit>
|
||||
LLSelectMgr::getInstance()->updateSelectionCenter();
|
||||
dialog_refresh_all();
|
||||
}
|
||||
@@ -4087,14 +4087,14 @@ void LLViewerObject::setDebugText(const std::string &utf8text)
|
||||
mText->setDoFade(FALSE);
|
||||
updateText();
|
||||
}
|
||||
// <edit>
|
||||
std::string LLViewerObject::getDebugText()
|
||||
{
|
||||
if(mText)
|
||||
return mText->getStringUTF8();
|
||||
return "";
|
||||
}
|
||||
// </edit>
|
||||
// <edit>
|
||||
std::string LLViewerObject::getDebugText()
|
||||
{
|
||||
if(mText)
|
||||
return mText->getStringUTF8();
|
||||
return "";
|
||||
}
|
||||
// </edit>
|
||||
|
||||
void LLViewerObject::setIcon(LLViewerImage* icon_image)
|
||||
{
|
||||
@@ -5161,19 +5161,19 @@ void LLViewerObject::resetChildrenPosition(const LLVector3& offset, BOOL simplif
|
||||
}
|
||||
|
||||
|
||||
// <edit>
|
||||
S32 LLViewerObject::getAttachmentPoint()
|
||||
{
|
||||
return ((S32)((((U8)mState & AGENT_ATTACH_MASK) >> 4) | (((U8)mState & ~AGENT_ATTACH_MASK) << 4)));
|
||||
}
|
||||
|
||||
std::string LLViewerObject::getAttachmentPointName()
|
||||
{
|
||||
S32 point = getAttachmentPoint();
|
||||
if((point > 0) && (point < 39))
|
||||
{
|
||||
return gAgent.getAvatarObject()->mAttachmentPoints[point]->getName();
|
||||
}
|
||||
return llformat("unsupported point %d", point);
|
||||
}
|
||||
// </edit>
|
||||
// <edit>
|
||||
S32 LLViewerObject::getAttachmentPoint()
|
||||
{
|
||||
return ((S32)((((U8)mState & AGENT_ATTACH_MASK) >> 4) | (((U8)mState & ~AGENT_ATTACH_MASK) << 4)));
|
||||
}
|
||||
|
||||
std::string LLViewerObject::getAttachmentPointName()
|
||||
{
|
||||
S32 point = getAttachmentPoint();
|
||||
if((point > 0) && (point < 39))
|
||||
{
|
||||
return gAgent.getAvatarObject()->mAttachmentPoints[point]->getName();
|
||||
}
|
||||
return llformat("unsupported point %d", point);
|
||||
}
|
||||
// </edit>
|
||||
|
||||
Reference in New Issue
Block a user