diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/rlvhandler.cpp | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/linden/indra/newview/rlvhandler.cpp b/linden/indra/newview/rlvhandler.cpp index 68453af..904ed37 100644 --- a/linden/indra/newview/rlvhandler.cpp +++ b/linden/indra/newview/rlvhandler.cpp | |||
@@ -31,6 +31,10 @@ | |||
31 | #include "rlvextensions.h" | 31 | #include "rlvextensions.h" |
32 | #include "rlvhandler.h" | 32 | #include "rlvhandler.h" |
33 | 33 | ||
34 | // Only defined in llinventorybridge.cpp | ||
35 | #if RLV_TARGET < RLV_MAKE_TARGET(1, 23, 0) // Version: 1.22.11 | ||
36 | void confirm_replace_attachment_rez(S32 option, void* user_data); | ||
37 | #endif | ||
34 | // Only defined in llinventorymodel.cpp | 38 | // Only defined in llinventorymodel.cpp |
35 | extern const char* NEW_CATEGORY_NAME; | 39 | extern const char* NEW_CATEGORY_NAME; |
36 | 40 | ||
@@ -112,7 +116,7 @@ static bool rlvParseNotifyOption(const std::string& strOption, S32& nChannel, st | |||
112 | 116 | ||
113 | // Checked: 2009-08-04 (RLVa-1.0.1d) | Modified: RLVa-1.0.1d | 117 | // Checked: 2009-08-04 (RLVa-1.0.1d) | Modified: RLVa-1.0.1d |
114 | RlvHandler::RlvHandler() | 118 | RlvHandler::RlvHandler() |
115 | : m_fCanCancelTp(true), m_idCurObject(LLUUID::null), m_pCurCommand(NULL), m_pGCTimer(NULL), m_pWLSnapshot(NULL), m_pBhvrNotify(NULL) | 119 | : m_fCanCancelTp(false), m_idCurObject(LLUUID::null), m_pCurCommand(NULL), m_pGCTimer(NULL), m_pWLSnapshot(NULL), m_pBhvrNotify(NULL) |
116 | { | 120 | { |
117 | // Array auto-initialization to 0 is non-standard? (Compiler warning in VC-8.0) | 121 | // Array auto-initialization to 0 is non-standard? (Compiler warning in VC-8.0) |
118 | memset(m_LayersAdd, 0, sizeof(S16) * WT_COUNT); | 122 | memset(m_LayersAdd, 0, sizeof(S16) * WT_COUNT); |
@@ -596,8 +600,13 @@ BOOL RlvHandler::processAddCommand(const LLUUID& uuid, const RlvCommand& rlvCmd) | |||
596 | case RLV_BHVR_SHOWMINIMAP: // @showminimap=n - Checked: 2009-07-05 (RLVa-1.0.0c) | 600 | case RLV_BHVR_SHOWMINIMAP: // @showminimap=n - Checked: 2009-07-05 (RLVa-1.0.0c) |
597 | { | 601 | { |
598 | // Simulate clicking the Minimap button [see LLToolBar::onClickRadar()] | 602 | // Simulate clicking the Minimap button [see LLToolBar::onClickRadar()] |
599 | if (LLFloaterMap::instanceVisible()) | 603 | #if RLV_TARGET < RLV_MAKE_TARGET(1, 23, 0) // Version: 1.22.11 |
604 | if (gFloaterMap->getVisible()) | ||
605 | LLFloaterMap::toggle(NULL); | ||
606 | #else // Version: 1.23.4 | ||
607 | if (LLFloaterMap::instanceVisible()) | ||
600 | LLFloaterMap::hideInstance(); | 608 | LLFloaterMap::hideInstance(); |
609 | #endif | ||
601 | } | 610 | } |
602 | break; | 611 | break; |
603 | #ifdef RLV_EXTENSION_STARTLOCATION | 612 | #ifdef RLV_EXTENSION_STARTLOCATION |
@@ -1097,8 +1106,8 @@ BOOL RlvHandler::processReplyCommand(const LLUUID& uuid, const RlvCommand& rlvCm | |||
1097 | 1106 | ||
1098 | const EWearableType layerTypes[] = | 1107 | const EWearableType layerTypes[] = |
1099 | { | 1108 | { |
1100 | WT_GLOVES, WT_JACKET, WT_PANTS, WT_SHIRT, WT_SHOES, WT_SKIRT, WT_ALPHA, WT_TATTOO, WT_SOCKS, | 1109 | WT_GLOVES, WT_JACKET, WT_PANTS, WT_SHIRT, WT_SHOES, WT_SKIRT, WT_SOCKS, |
1101 | WT_UNDERPANTS, WT_UNDERSHIRT, WT_SKIN, WT_EYES, WT_HAIR, WT_SHAPE | 1110 | WT_UNDERPANTS, WT_UNDERSHIRT, WT_SKIN, WT_EYES, WT_HAIR, WT_SHAPE, WT_ALPHA, WT_TATTOO |
1102 | }; | 1111 | }; |
1103 | 1112 | ||
1104 | #ifdef RLV_EXPERIMENTAL_COMPOSITE_FOLDING | 1113 | #ifdef RLV_EXPERIMENTAL_COMPOSITE_FOLDING |
@@ -1601,8 +1610,8 @@ void RlvHandler::filterNames(std::string& strUTF8Text) const | |||
1601 | // -> the cost of multi string matching them all at once seems to be about the same as calling rlvStringReplace | 1610 | // -> the cost of multi string matching them all at once seems to be about the same as calling rlvStringReplace |
1602 | // twice so that would be a tremendous gain (and we'd get first name and word matching for free) | 1611 | // twice so that would be a tremendous gain (and we'd get first name and word matching for free) |
1603 | #if RLV_TARGET < RLV_MAKE_TARGET(1, 23, 0) // Version: 1.22.11 | 1612 | #if RLV_TARGET < RLV_MAKE_TARGET(1, 23, 0) // Version: 1.22.11 |
1604 | for (LLWorld::region_list_t::const_iterator itRegion = LLWorld::getInstance()->getRegionList().begin(); | 1613 | for (LLWorld::region_list_t::const_iterator itRegion = LLWorld::getInstance()->mActiveRegionList.begin(); |
1605 | itRegion != LLWorld::getInstance()->getRegionList().end(); ++itRegion) | 1614 | itRegion != LLWorld::getInstance()->mActiveRegionList.end(); ++itRegion) |
1606 | { | 1615 | { |
1607 | LLViewerRegion* pRegion = *itRegion; | 1616 | LLViewerRegion* pRegion = *itRegion; |
1608 | 1617 | ||
@@ -1688,8 +1697,8 @@ bool RlvHandler::redirectChatOrEmote(const std::string& strUTF8Text) const | |||
1688 | BOOL RlvHandler::isAgentNearby(const LLUUID& uuid) const | 1697 | BOOL RlvHandler::isAgentNearby(const LLUUID& uuid) const |
1689 | { | 1698 | { |
1690 | #if RLV_TARGET < RLV_MAKE_TARGET(1, 23, 0) // Version: 1.22.11 | 1699 | #if RLV_TARGET < RLV_MAKE_TARGET(1, 23, 0) // Version: 1.22.11 |
1691 | for (LLWorld::region_list_t::const_iterator itRegion = LLWorld::getInstance()->getRegionList().begin(); | 1700 | for (LLWorld::region_list_t::const_iterator itRegion = LLWorld::getInstance()->mActiveRegionList.begin(); |
1692 | itRegion != LLWorld::getInstance()->getRegionList().end(); ++itRegion) | 1701 | itRegion != LLWorld::getInstance()->mActiveRegionList.end(); ++itRegion) |
1693 | { | 1702 | { |
1694 | LLViewerRegion* pRegion = *itRegion; | 1703 | LLViewerRegion* pRegion = *itRegion; |
1695 | 1704 | ||