diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 9af85e832..364b272f0 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -220,6 +220,19 @@ LLAgent gAgent; // Statics // +// +// For MapBlockReply funk 'cause I dunno what I'm doing +BOOL LLAgent::lure_show = FALSE; +std::string LLAgent::lure_name; +LLVector3d LLAgent::lure_posglobal; +U16 LLAgent::lure_global_x; +U16 LLAgent::lure_global_y; +int LLAgent::lure_x; +int LLAgent::lure_y; +int LLAgent::lure_z; +std::string LLAgent::lure_maturity; +// + const F32 LLAgent::TYPING_TIMEOUT_SECS = 5.f; std::map LLAgent::sTeleportErrorMessages; @@ -757,7 +770,11 @@ void LLAgent::movePitch(S32 direction) // Does this parcel allow you to fly? BOOL LLAgent::canFly() { - if (isGodlike()) return TRUE; + if (isGodlike()) return TRUE; + + // + if(gSavedSettings.getBOOL("AlwaysAllowFly")) return TRUE; + // LLViewerRegion* regionp = getRegion(); if (regionp && regionp->getBlockFly()) return FALSE; @@ -1866,8 +1883,10 @@ void LLAgent::cameraZoomIn(const F32 fraction) LLWorld::getInstance()->getRegionWidthInMeters() - DIST_FUDGE ); if (new_distance > max_distance) - { - new_distance = max_distance; + { + // screw cam constraints + //new_distance = max_distance; + // /* // Unless camera is unlocked diff --git a/indra/newview/llinventorybackup.cpp b/indra/newview/llinventorybackup.cpp index d4bb07da7..dc121e470 100644 --- a/indra/newview/llinventorybackup.cpp +++ b/indra/newview/llinventorybackup.cpp @@ -295,45 +295,37 @@ void LLInventoryBackup::download(LLInventoryItem* item, LLFloater* floater, load userdata->item = item; LLViewerImage* imagep; -#if OPENSIM_RULES!=1 - //don't be a jerk. (this check probably breaks stuff) - if(item->getCreatorUUID() == gAgentID) + switch(item->getType()) { -#endif /* OPENSIM_RULES!=1 */ - switch(item->getType()) - { - case LLAssetType::AT_TEXTURE: - imagep = gImageList.getImage(item->getAssetUUID(), MIPMAP_TRUE, TRUE); - imagep->setLoadedCallbackNoAux( onImage, 0, TRUE, FALSE, userdata ); - break; - case LLAssetType::AT_NOTECARD: - case LLAssetType::AT_SCRIPT: - case LLAssetType::AT_LSL_TEXT: // normal script download - case LLAssetType::AT_LSL_BYTECODE: - gAssetStorage->getInvItemAsset(LLHost::invalid, - gAgent.getID(), - gAgent.getSessionID(), - item->getPermissions().getOwner(), - LLUUID::null, - item->getUUID(), - item->getAssetUUID(), - item->getType(), - onAsset, - userdata, // user_data - TRUE); - break; - case LLAssetType::AT_SOUND: - case LLAssetType::AT_CLOTHING: - case LLAssetType::AT_BODYPART: - case LLAssetType::AT_ANIMATION: - case LLAssetType::AT_GESTURE: - default: - gAssetStorage->getAssetData(item->getAssetUUID(), item->getType(), onAsset, userdata, TRUE); - break; - } -#if OPENSIM_RULES!=1 + case LLAssetType::AT_TEXTURE: + imagep = gImageList.getImage(item->getAssetUUID(), MIPMAP_TRUE, TRUE); + imagep->setLoadedCallbackNoAux( onImage, 0, TRUE, FALSE, userdata ); + break; + case LLAssetType::AT_NOTECARD: + case LLAssetType::AT_SCRIPT: + case LLAssetType::AT_LSL_TEXT: // normal script download + case LLAssetType::AT_LSL_BYTECODE: + gAssetStorage->getInvItemAsset(LLHost::invalid, + gAgent.getID(), + gAgent.getSessionID(), + item->getPermissions().getOwner(), + LLUUID::null, + item->getUUID(), + item->getAssetUUID(), + item->getType(), + onAsset, + userdata, // user_data + TRUE); + break; + case LLAssetType::AT_SOUND: + case LLAssetType::AT_CLOTHING: + case LLAssetType::AT_BODYPART: + case LLAssetType::AT_ANIMATION: + case LLAssetType::AT_GESTURE: + default: + gAssetStorage->getAssetData(item->getAssetUUID(), item->getType(), onAsset, userdata, TRUE); + break; } -#endif /* OPENSIM_RULES!=1 */ } // static