diff --git a/indra/newview/fschathistory.cpp b/indra/newview/fschathistory.cpp index ea839e4c98..cee2e21b77 100644 --- a/indra/newview/fschathistory.cpp +++ b/indra/newview/fschathistory.cpp @@ -721,10 +721,11 @@ protected: void showInfoCtrl() { - const bool isVisible = !mAvatarID.isNull() && !mFrom.empty() && (CHAT_SOURCE_SYSTEM != mSourceType || mType == CHAT_TYPE_RADAR); +// const bool isVisible = !mAvatarID.isNull() && !mFrom.empty() && (CHAT_SOURCE_SYSTEM != mSourceType || mType == CHAT_TYPE_RADAR);; // [RLVa:KB] - Checked: 2010-04-22 (RLVa-1.2.2a) | Added: RLVa-1.2.0f - if (isVisible && mShowInfoCtrl) + const bool isVisible = mShowInfoCtrl && !mAvatarID.isNull() && !mFrom.empty() && (CHAT_SOURCE_SYSTEM != mSourceType || mType == CHAT_TYPE_RADAR);; // [/RLVa:KB] + if (isVisible) { const LLRect sticky_rect = mUserNameTextBox->getRect(); S32 icon_x = llmin(sticky_rect.mLeft + mUserNameTextBox->getTextBoundingRect().getWidth() + 7, sticky_rect.mRight - 3); diff --git a/indra/newview/rlvcommon.cpp b/indra/newview/rlvcommon.cpp index 23821f1fd5..62a6a65396 100644 --- a/indra/newview/rlvcommon.cpp +++ b/indra/newview/rlvcommon.cpp @@ -244,7 +244,7 @@ void RlvStrings::saveToFile(const std::string& strFilePath) sdStrings[itString->first]["value"] = listValues.back(); } - llofstream fileStream(strFilePath); + llofstream fileStream(strFilePath.c_str()); if (!fileStream.good()) return; diff --git a/indra/newview/rlvdefines.h b/indra/newview/rlvdefines.h index fd16d15302..e61b34cfca 100644 --- a/indra/newview/rlvdefines.h +++ b/indra/newview/rlvdefines.h @@ -73,7 +73,7 @@ const S32 RLVa_VERSION_BUILD = 0; #define RLV_PUTINV_PREFIX "#RLV/~" #define RLV_PUTINV_SEPARATOR "/" #define RLV_PUTINV_MAXDEPTH 4 -#define RLV_SETROT_OFFSET F_PI_BY_TWO // @setrot is off by 90° with the rest of SL +#define RLV_SETROT_OFFSET F_PI_BY_TWO // @setrot is off by 90 degrees with the rest of SL #define RLV_STRINGS_FILE "rlva_strings.xml" #define RLV_FOLDER_FLAG_NOSTRIP "nostrip" diff --git a/indra/newview/rlvextensions.cpp b/indra/newview/rlvextensions.cpp index d62b353c06..43a5f61f50 100644 --- a/indra/newview/rlvextensions.cpp +++ b/indra/newview/rlvextensions.cpp @@ -281,7 +281,7 @@ bool RlvWindLight::setValue(const std::string& strRlvName, const std::string& st } else { - pEnvMgr->useRegionSettings(); + pEnvMgr->setUserPrefs(pEnvMgr->getWaterPresetName(), pEnvMgr->getSkyPresetName(), pEnvMgr->getDayCycleName(), false, true); } return true; } diff --git a/indra/newview/rlvhandler.cpp b/indra/newview/rlvhandler.cpp index 026d05f46f..dd9db062bd 100644 --- a/indra/newview/rlvhandler.cpp +++ b/indra/newview/rlvhandler.cpp @@ -2112,7 +2112,7 @@ ERlvCmdRet RlvHandler::processForceCommand(const RlvCommand& rlvCmd) const nValue += rlvCmdOption.m_nPelvisToFootOffset; if (gAgentAvatarp->getRegion()->avatarHoverHeightEnabled() || !gAgentAvatarp->isUsingServerBakes()) { - LLVector3 avOffset(0.0, 0.0, llclamp(nValue, MIN_HOVER_Z, MAX_HOVER_Z)); + LLVector3 avOffset(0.0f, 0.0f, llclamp(nValue, MIN_HOVER_Z, MAX_HOVER_Z)); gSavedPerAccountSettings.setF32("AvatarHoverOffsetZ", avOffset.mV[VZ]); gAgentAvatarp->setHoverOffset(avOffset, true); } diff --git a/indra/newview/rlvinventory.cpp b/indra/newview/rlvinventory.cpp index 5dad1ac716..b8cfb82991 100644 --- a/indra/newview/rlvinventory.cpp +++ b/indra/newview/rlvinventory.cpp @@ -18,8 +18,8 @@ #include "llagent.h" #include "llappearancemgr.h" #include "llstartup.h" -#include "llviewermessage.h" #include "llviewerfoldertype.h" +#include "llviewermessage.h" #include "rlvinventory.h" diff --git a/indra/newview/rlvinventory.h b/indra/newview/rlvinventory.h index 5997ad9b24..c0ae7de4d8 100644 --- a/indra/newview/rlvinventory.h +++ b/indra/newview/rlvinventory.h @@ -24,6 +24,10 @@ #include "rlvhelper.h" #include "rlvlocks.h" +// ============================================================================ +// Forward declarations +// + class LLOfferInfo; // ============================================================================