diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index e0afcd5d1a..49df1a785c 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -245,8 +245,10 @@ private: const F32 LLAgent::MIN_AFK_TIME = 10.0f; const F32 LLAgent::TYPING_TIMEOUT_SECS = 5.f; -BOOL LLAgent::ignorePrejump = 0; -BOOL LLAgent::PhoenixForceFly; +// Ignore prejump and always fly +BOOL LLAgent::ignorePrejump = FALSE; +BOOL LLAgent::fsAlwaysFly; +// Ignore prejump and always fly std::map LLAgent::sTeleportErrorMessages; std::map LLAgent::sTeleportProgressMessages; @@ -461,24 +463,26 @@ LLAgent::LLAgent() : mMoveTimer.stop(); } +// Ignore prejump and always fly void LLAgent::updateIgnorePrejump(const LLSD &data) { ignorePrejump = data.asBoolean(); } -void LLAgent::updatePhoenixForceFly(const LLSD &data) +void LLAgent::updateFSAlwaysFly(const LLSD &data) { - PhoenixForceFly = data.asBoolean(); - if (PhoenixForceFly == TRUE) + fsAlwaysFly = data.asBoolean(); + if (fsAlwaysFly) { llinfos << "Enabling Fly Override" << llendl; - if (gSavedSettings.getBOOL("FirstUseFlyOverride") == TRUE) - { - LLNotificationsUtil::add("FirstUseFlyOverride"); + if (gSavedSettings.getBOOL("FirstUseFlyOverride")) + { + LLNotificationsUtil::add("FirstUseFlyOverride"); gSavedSettings.setBOOL("FirstUseFlyOverride", FALSE); } } } +// Ignore prejump and always fly // Requires gSavedSettings to be initialized. //----------------------------------------------------------------------------- @@ -504,8 +508,8 @@ void LLAgent::init() mIsDoSendMaturityPreferenceToServer = true; ignorePrejump = gSavedSettings.getBOOL("FSIgnoreFinishAnimation"); gSavedSettings.getControl("FSIgnoreFinishAnimation")->getSignal()->connect(boost::bind(&LLAgent::updateIgnorePrejump, this, _2)); - PhoenixForceFly = gSavedSettings.getBOOL("FSAlwaysFly"); - gSavedSettings.getControl("FSAlwaysFly")->getSignal()->connect(boost::bind(&LLAgent::updatePhoenixForceFly, this, _2)); + fsAlwaysFly = gSavedSettings.getBOOL("FSAlwaysFly"); + gSavedSettings.getControl("FSAlwaysFly")->getSignal()->connect(boost::bind(&LLAgent::updateFSAlwaysFly, this, _2)); selectAutorespond(gSavedPerAccountSettings.getBOOL("FSAutorespondMode")); selectAutorespondNonFriends(gSavedPerAccountSettings.getBOOL("FSAutorespondNonFriendsMode")); @@ -786,8 +790,13 @@ BOOL LLAgent::canFly() if (gRlvHandler.hasBehaviour(RLV_BHVR_FLY)) return FALSE; // [/RLVa:KB] if (isGodlike()) return TRUE; - //LGG always fly code - if(PhoenixForceFly) return TRUE; + // Always fly + if (fsAlwaysFly) + { + return TRUE; + } + // + LLViewerRegion* regionp = getRegion(); if (regionp && regionp->getBlockFly()) return FALSE; @@ -2271,11 +2280,6 @@ void LLAgent::endAnimationUpdateUI() gMenuBarView->setVisible(TRUE); // Separate navigation and favorites panel //LLNavigationBar::getInstance()->setVisible(TRUE && gSavedSettings.getBOOL("ShowNavbarNavigationPanel")); - // Is done inside XUI now, using visibility_control - // LLNavigationBar::getInstance()->showNavigationPanel(TRUE && gSavedSettings.getBOOL("ShowNavbarNavigationPanel")); - // LLNavigationBar::getInstance()->showFavoritesPanel(TRUE && gSavedSettings.getBOOL("ShowNavbarFavoritesPanel")); - // - // Separate navigation and favorites panel gStatusBar->setVisibleForMouselook(true); if (gSavedSettings.getBOOL("ShowMiniLocationPanel")) @@ -2406,11 +2410,6 @@ void LLAgent::endAnimationUpdateUI() gMenuBarView->setVisible(FALSE); // Separate navigation and favorites panel //LLNavigationBar::getInstance()->setVisible(FALSE); - // Is done inside XUI now, using visibility_control - // LLNavigationBar::getInstance()->showNavigationPanel(FALSE); - // LLNavigationBar::getInstance()->showFavoritesPanel(FALSE); - // - // Separate navigation and favorites panel gStatusBar->setVisibleForMouselook(false); LLPanelTopInfoBar::getInstance()->setVisible(FALSE); @@ -3105,6 +3104,7 @@ void LLAgent::sendMaturityPreferenceToServer(U8 pPreferredMaturity) } } } + BOOL LLAgent::getAdminOverride() const { return mAgentAccess->getAdminOverride(); @@ -3604,7 +3604,7 @@ void LLAgent::processAgentDropGroup(LLMessageSystem *msg, void **) LLGroupMgr::getInstance()->clearGroupData(group_id); // close the floater for this group, if any. - // AO: Don't assume that because we drop a group, we want floaters to change. + // Don't assume that because we drop a group, we want floaters to change. //LLGroupActions::closeGroup(group_id); } else @@ -3708,7 +3708,7 @@ LLHTTPRegistration // static void LLAgent::processAgentGroupDataUpdate(LLMessageSystem *msg, void **) -{ +{ LLUUID agent_id; msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_AgentID, agent_id ); @@ -3764,7 +3764,7 @@ class LLAgentGroupDataUpdateViewerNode : public LLHTTPNode if(body.has("body")) body = body["body"]; LLUUID agent_id = body["AgentData"][0]["AgentID"].asUUID(); - + if (agent_id != gAgentID) { llwarns << "processAgentGroupDataUpdate for agent other than me" << llendl; @@ -3807,7 +3807,7 @@ class LLAgentGroupDataUpdateViewerNode : public LLHTTPNode gAgent.mGroups.put(group); } if (need_floater_update) - { + { update_group_floaters(group.mID); } } @@ -3847,6 +3847,7 @@ void LLAgent::processAgentDataUpdate(LLMessageSystem *msg, void **) gAgent.mGroupPowers = 0; gAgent.mGroupName.clear(); } + // Restore to world if (gAgent.restoreToWorld) { //This fires if we're trying to restore an item to world using the correct group. @@ -3887,6 +3888,8 @@ void LLAgent::processAgentDataUpdate(LLMessageSystem *msg, void **) msg->addUUIDFast(_PREHASH_GroupID, gAgent.restoreToWorldGroup); gAgent.sendReliableMessage(); } + // + update_group_floaters(active_id); // Fire event for group title overview @@ -4159,7 +4162,7 @@ void LLAgent::clearVisualParams(void *data) //--------------------------------------------------------------------------- // Teleport //--------------------------------------------------------------------------- -//-TT Client LSL Bridge +// Client LSL Bridge bool LLAgent::teleportBridgeLocal(LLVector3& pos_local) { std::stringstream msgstream; @@ -4175,9 +4178,8 @@ bool LLAgent::teleportBridgeGlobal(const LLVector3d& pos_global) LLVector3 pos_local = (LLVector3)(pos_global - from_region_handle(region_handle)); return teleportBridgeLocal(pos_local); - } -//-TT Client LSL Bridge +// Client LSL Bridge // teleportCore() - stuff to do on any teleport // protected @@ -4221,7 +4223,7 @@ bool LLAgent::teleportCore(bool is_local) // hide the Region/Estate floater LLFloaterReg::hideInstance("region_info"); - // hide the Search floater (TS: FIRE-2886, backing out STORM-1474) + // minimize the Search floater (STORM-1474) { LLFloater* instance = LLFloaterReg::getInstance("search"); @@ -4269,7 +4271,7 @@ bool LLAgent::teleportCore(bool is_local) // bit of a hack -KC KCWindlightInterface::instance().setTPing(true); } - make_ui_sound("UISndTeleportOut"); //AO + make_ui_sound("UISndTeleportOut"); // MBW -- Let the voice client know a teleport has begun so it can leave the existing channel. // This was breaking the case of teleporting within a single sim. Backing it out for now. @@ -4568,12 +4570,12 @@ void LLAgent::doTeleportViaLocation(const LLVector3d& pos_global) msg->addVector3Fast(_PREHASH_LookAt, pos); sendReliableMessage(); } -//-TT Client LSL Bridge +// Client LSL Bridge if (gSavedSettings.getBOOL("UseLSLBridge") && isLocal) { teleportBridgeGlobal(pos_global); } -//-TT +// } // Teleport to global position, but keep facing in the same direction @@ -4600,19 +4602,23 @@ void LLAgent::doTeleportViaLocationLookAt(const LLVector3d& pos_global) U64 region_handle = to_region_handle(pos_global); // Aurora-sim var region teleports LLSimInfo* simInfo = LLWorldMap::instance().simInfoFromHandle(region_handle); - if(simInfo) + if (simInfo) + { region_handle = simInfo->getHandle(); + } // LLVector3 pos_local = (LLVector3)(pos_global - from_region_handle(region_handle)); teleportRequest(region_handle, pos_local, getTeleportKeepsLookAt()); -//-TT Client LSL Bridge +// Client LSL Bridge if (gSavedSettings.getBOOL("UseLSLBridge")) { if (region_handle == to_region_handle(getPositionGlobal())) + { teleportBridgeLocal(pos_local); + } } -//-TT +// } void LLAgent::setTeleportState(ETeleportState state) @@ -5106,21 +5112,25 @@ void LLAgent::renderAutoPilotTarget() } } -// Firestorm Phantom +// Phantom mode void LLAgent::togglePhantom() { mPhantom = !mPhantom; - if(mPhantom) + if (mPhantom) + { LLNotificationsUtil::add("PhantomOn", LLSD()); + } else + { LLNotificationsUtil::add("PhantomOff", LLSD()); + } } bool LLAgent::getPhantom() const { return mPhantom; } -// Firestorm Phantom +// Phantom mode /********************************************************************************/ diff --git a/indra/newview/llagent.h b/indra/newview/llagent.h index 8100bbb68d..2c4fc888e4 100644 --- a/indra/newview/llagent.h +++ b/indra/newview/llagent.h @@ -461,10 +461,13 @@ private: U32 mControlFlags; // Replacement for the mFooKey's BOOL mbFlagsDirty; BOOL mbFlagsNeedReset; // ! HACK ! For preventing incorrect flags sent when crossing region boundaries + + // Ignore prejump and always fly static BOOL ignorePrejump; - static BOOL PhoenixForceFly; + static BOOL fsAlwaysFly; void updateIgnorePrejump(const LLSD &data); - void updatePhoenixForceFly(const LLSD &data); + void updateFSAlwaysFly(const LLSD &data); + // Ignore prejump and always fly //-------------------------------------------------------------------- // Animations @@ -613,10 +616,10 @@ public: void teleportViaLocationLookAt(const LLVector3d& pos_global);// To a global location, preserving camera rotation void teleportCancel(); // May or may not be allowed by server bool getTeleportKeepsLookAt() { return mbTeleportKeepsLookAt; } // Whether look-at reset after teleport -//-TT Client LSL Bridge +// Client LSL Bridge bool teleportBridgeLocal(LLVector3& pos_local); // Teleport using LSL Bridge - bool teleportBridgeGlobal(const LLVector3d& pos_global); // Teleport using LSL Bridge -//-TT + bool teleportBridgeGlobal(const LLVector3d& pos_global); // Teleport using LSL Bridge +// protected: bool teleportCore(bool is_local = false); // Stuff for all teleports; returns true if the teleport can proceed diff --git a/indra/newview/llagentcamera.cpp b/indra/newview/llagentcamera.cpp index 7f08fa80f0..db3406d794 100644 --- a/indra/newview/llagentcamera.cpp +++ b/indra/newview/llagentcamera.cpp @@ -2898,8 +2898,6 @@ S32 LLAgentCamera::directionToKey(S32 direction) } // FIRE-7758: Save/load camera position feature -// Copyright (C) 2012, Ansariel Hiller @ Second Life for Phoenix Firestorm Viewer -// This code is licensed unter the GNU Lesser General Public License version 2.1 void LLAgentCamera::storeCameraPosition() { mStoredCameraPos = getCameraPositionGlobal(); @@ -2935,4 +2933,3 @@ void LLAgentCamera::loadCameraPosition() // FIRE-7758: Save/load camera position feature // EOF - diff --git a/indra/newview/llagentcamera.h b/indra/newview/llagentcamera.h index 290ad4e4d8..ba4fc13223 100644 --- a/indra/newview/llagentcamera.h +++ b/indra/newview/llagentcamera.h @@ -393,8 +393,6 @@ private: *******************************************************************************/ // FIRE-7758: Save/load camera position feature -// Copyright (C) 2012, Ansariel Hiller @ Second Life for Phoenix Firestorm Viewer -// This code is licensed unter the GNU Lesser General Public License version 2.1 public: void storeCameraPosition(); void loadCameraPosition(); diff --git a/indra/newview/llagentlanguage.cpp b/indra/newview/llagentlanguage.cpp index 8dddb42207..16af26eb5b 100644 --- a/indra/newview/llagentlanguage.cpp +++ b/indra/newview/llagentlanguage.cpp @@ -47,7 +47,7 @@ void LLAgentLanguage::onChange() { // Clear inventory cache so that default names of inventory items // appear retranslated (EXT-8308). - // AO: Purging the cache every language change is less desirable than having to manually cache clear once to retranslate inventory. + // Purging the cache every language change is less desirable than having to manually cache clear once to retranslate inventory. //gSavedSettings.setBOOL("PurgeCacheOnNextStartup", TRUE); } diff --git a/indra/newview/llagentui.cpp b/indra/newview/llagentui.cpp index fbaa3cc944..7b52bd39a0 100644 --- a/indra/newview/llagentui.cpp +++ b/indra/newview/llagentui.cpp @@ -172,6 +172,7 @@ BOOL LLAgentUI::buildLocationString(std::string& str, ELocationFormat fmt,const sim_access_string.empty() ? "" : " - ", sim_access_string.c_str()); break; + // V1 format statusbar case LOCATION_FORMAT_V1_STATUSBAR: if (fsStatusbarShowSimulatorVersion && !simulator_channel.empty()) { @@ -191,6 +192,7 @@ BOOL LLAgentUI::buildLocationString(std::string& str, ELocationFormat fmt,const sim_access_string.c_str()); } break; + // V1 format statusbar } } else @@ -225,6 +227,7 @@ BOOL LLAgentUI::buildLocationString(std::string& str, ELocationFormat fmt,const sim_access_string.empty() ? "" : " - ", sim_access_string.c_str()); break; + // V1 format statusbar case LOCATION_FORMAT_V1_STATUSBAR: if (fsStatusbarShowSimulatorVersion && !simulator_channel.empty()) { @@ -246,6 +249,7 @@ BOOL LLAgentUI::buildLocationString(std::string& str, ELocationFormat fmt,const parcel_name.c_str()); } break; + // V1 format statusbar } } str = buffer; diff --git a/indra/newview/llagentui.h b/indra/newview/llagentui.h index d6122a8391..3fac43e619 100644 --- a/indra/newview/llagentui.h +++ b/indra/newview/llagentui.h @@ -39,7 +39,7 @@ public: LOCATION_FORMAT_NO_MATURITY, // Parcel, Region (x, y, z) LOCATION_FORMAT_NO_COORDS, // Parcel, Region - Maturity LOCATION_FORMAT_FULL, // Parcel, Region (x, y, z) - Maturity - LOCATION_FORMAT_V1_STATUSBAR, // Ansariel: V1 mode for status bar: Region (x, y, z) - Maturity - Parcel + LOCATION_FORMAT_V1_STATUSBAR, // V1 mode for status bar: Region (x, y, z) - Maturity - Parcel }; static void buildFullname(std::string &name); diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index 0e6a798877..4a7be3b830 100644 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -1492,7 +1492,7 @@ void LLAppearanceMgr::takeOffOutfit(const LLUUID& cat_id) gInventory.collectDescendentsIf(cat_id, cats, items, FALSE, collector); -//-TT Client LSL Bridge +// Client LSL Bridge if (gSavedSettings.getBOOL("UseLSLBridge")) { //if replacing - make sure bridge stays. @@ -1501,10 +1501,9 @@ void LLAppearanceMgr::takeOffOutfit(const LLUUID& cat_id) llinfos << "reinserting bridge at outfit remove" << llendl; //items.find(FSLSLBridge::instance().getBridge()); items.removeObj(FSLSLBridge::instance().getBridge()); - llinfos << "reinserted bridge at outfit remove" << llendl; } } -//-TT +// LLInventoryModel::item_array_t::const_iterator it = items.begin(); const LLInventoryModel::item_array_t::const_iterator it_end = items.end(); @@ -2578,12 +2577,12 @@ void LLAppearanceMgr::getUserDescendents(const LLUUID& category, } void LLAppearanceMgr::wearInventoryCategory(LLInventoryCategory* category, bool copy, bool append) -//-TT Patch: ReplaceWornItemsOnly +// ReplaceWornItemsOnly { wearInventoryCategory(category, copy, append, false); } void LLAppearanceMgr::wearInventoryCategory(LLInventoryCategory* category, bool copy, bool append, bool replace) -//-TT +// { if(!category) return; @@ -2599,26 +2598,26 @@ void LLAppearanceMgr::wearInventoryCategory(LLInventoryCategory* category, bool callAfterCategoryFetch(category->getUUID(),boost::bind(&LLAppearanceMgr::wearCategoryFinal, &LLAppearanceMgr::instance(), category->getUUID(), copy, append)); -//-TT Patch: ReplaceWornItemsOnly +// ReplaceWornItemsOnly //category->getUUID(), copy, append, replace)); -//-TT +// } -//-TT Patch: ReplaceWornItemsOnly +// ReplaceWornItemsOnly void LLAppearanceMgr::replaceCategoryInCurrentOutfit(const LLUUID& cat_id) { LLViewerInventoryCategory* cat = gInventory.getCategory(cat_id); wearInventoryCategory(cat, false, true); } -//-TT +// void LLAppearanceMgr::wearCategoryFinal(LLUUID& cat_id, bool copy_items, bool append) -//-TT Patch: ReplaceWornItemsOnly +// ReplaceWornItemsOnly { wearCategoryFinal(cat_id, copy_items, append, false); } void LLAppearanceMgr::wearCategoryFinal(LLUUID& cat_id, bool copy_items, bool append, bool replace) -//-TT +// { LL_INFOS("Avatar") << self_av_string() << "starting" << LL_ENDL; @@ -3109,7 +3108,7 @@ void LLAppearanceMgr::updateIsDirty() gInventory.collectDescendentsIf(base_outfit, outfit_cats, outfit_items, LLInventoryModel::EXCLUDE_TRASH, collector); - // FIRE-3018: Ignore the bridge when checking for dirty. -- TS + // FIRE-3018: Ignore the bridge when checking for dirty. for (U32 i = 0; i < cof_items.size(); ++i) { LLViewerInventoryItem *item = cof_items.get(i); @@ -3120,6 +3119,7 @@ void LLAppearanceMgr::updateIsDirty() break; } } + // if(outfit_items.count() != cof_items.count()) { diff --git a/indra/newview/llappearancemgr.h b/indra/newview/llappearancemgr.h index fa50656257..351cfd8f1d 100644 --- a/indra/newview/llappearancemgr.h +++ b/indra/newview/llappearancemgr.h @@ -61,17 +61,15 @@ public: bool append = false, const LLUUID& idOutfit = LLUUID::null); // [/RLVa:KB] void wearInventoryCategory(LLInventoryCategory* category, bool copy, bool append); -//-TT Patch: ReplaceWornItemsOnly +// ReplaceWornItemsOnly void wearInventoryCategory(LLInventoryCategory* category, bool copy, bool append, bool items); -//-TT +// void wearInventoryCategoryOnAvatar(LLInventoryCategory* category, bool append); void wearCategoryFinal(LLUUID& cat_id, bool copy_items, bool append); -//-TT Patch: ReplaceWornItemsOnly +// ReplaceWornItemsOnly void wearCategoryFinal(LLUUID& cat_id, bool copy_items, bool append, bool items); -//-TT -//-TT Patch: ReplaceWornItemsOnly void replaceCategoryInCurrentOutfit(const LLUUID& cat_id); -//-TT +// void wearOutfitByName(const std::string& name); void changeOutfit(bool proceed, const LLUUID& category, bool append); void replaceCurrentOutfit(const LLUUID& new_outfit); diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index d49bd78b61..e493b9e8b8 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -1114,12 +1114,15 @@ bool LLAppViewer::init() gGLManager.printGLInfoString(); // Load Default bindings + // Optional AZERTY keyboard layout + //std::string key_bindings_file = gDirUtilp->findFile("keys.xml", std::string keyBindingFileName("keys.xml"); if (gSavedSettings.getBOOL("FSUseAzertyKeyboardLayout")) { keyBindingFileName = "keys_azerty.xml"; } std::string key_bindings_file = gDirUtilp->findFile(keyBindingFileName, + // gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, ""), gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS, "")); diff --git a/indra/newview/llassetuploadresponders.cpp b/indra/newview/llassetuploadresponders.cpp index 658dcfd90c..154284eb6f 100644 --- a/indra/newview/llassetuploadresponders.cpp +++ b/indra/newview/llassetuploadresponders.cpp @@ -51,9 +51,6 @@ #include "llviewertexlayer.h" #include "llviewerwindow.h" #include "lltrans.h" -//-TT Client LSL Bridge -#include "fslslbridge.h" -//-TT // library includes #include "lldir.h" @@ -66,6 +63,8 @@ #include "llsdutil.h" #include "llvfs.h" #include "tea.h" // +// Client LSL Bridge +#include "fslslbridge.h" // When uploading multiple files, don't display any of them when uploading more than this number. static const S32 FILE_COUNT_DISPLAY_THRESHOLD = 5; @@ -610,10 +609,12 @@ void LLUpdateAgentInventoryResponder::uploadComplete(const LLSD& content) preview->callbackLSLCompileFailed(content["errors"]); } } -//-TT Client LSL Bridge + // Client LSL Bridge if (gSavedSettings.getBOOL("UseLSLBridge")) - FSLSLBridge::instance().checkBridgeScriptName(mFileName); -//-TT + { + FSLSLBridge::instance().checkBridgeScriptName(mFileName); + } + // break; }