diff options
author | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
commit | b2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch) | |
tree | 3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/newview/llviewerparcelmgr.cpp | |
parent | Second Life viewer sources 1.14.0.1 (diff) | |
download | meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2 meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz |
Second Life viewer sources 1.15.0.2
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewerparcelmgr.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/linden/indra/newview/llviewerparcelmgr.cpp b/linden/indra/newview/llviewerparcelmgr.cpp index a21d2f7..3d4bbe5 100644 --- a/linden/indra/newview/llviewerparcelmgr.cpp +++ b/linden/indra/newview/llviewerparcelmgr.cpp | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2002-2007, Linden Research, Inc. | 5 | * Copyright (c) 2002-2007, Linden Research, Inc. |
6 | * | 6 | * |
7 | * Second Life Viewer Source Code | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | 8 | * The source code in this file ("Source Code") is provided by Linden Lab |
8 | * to you under the terms of the GNU General Public License, version 2.0 | 9 | * to you under the terms of the GNU General Public License, version 2.0 |
9 | * ("GPL"), unless you have obtained a separate licensing agreement | 10 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -1366,7 +1367,6 @@ void LLViewerParcelMgr::processParcelProperties(LLMessageSystem *msg, void **use | |||
1366 | LLUUID owner_id; | 1367 | LLUUID owner_id; |
1367 | BOOL is_group_owned; | 1368 | BOOL is_group_owned; |
1368 | U32 auction_id = 0; | 1369 | U32 auction_id = 0; |
1369 | BOOL is_reserved = FALSE; | ||
1370 | S32 claim_price_per_meter = 0; | 1370 | S32 claim_price_per_meter = 0; |
1371 | S32 rent_price_per_meter = 0; | 1371 | S32 rent_price_per_meter = 0; |
1372 | S32 claim_date = 0; | 1372 | S32 claim_date = 0; |
@@ -1443,7 +1443,6 @@ void LLViewerParcelMgr::processParcelProperties(LLMessageSystem *msg, void **use | |||
1443 | msg->getUUIDFast(_PREHASH_ParcelData, _PREHASH_OwnerID, owner_id); | 1443 | msg->getUUIDFast(_PREHASH_ParcelData, _PREHASH_OwnerID, owner_id); |
1444 | msg->getBOOLFast(_PREHASH_ParcelData, _PREHASH_IsGroupOwned, is_group_owned); | 1444 | msg->getBOOLFast(_PREHASH_ParcelData, _PREHASH_IsGroupOwned, is_group_owned); |
1445 | msg->getU32Fast(_PREHASH_ParcelData, _PREHASH_AuctionID, auction_id); | 1445 | msg->getU32Fast(_PREHASH_ParcelData, _PREHASH_AuctionID, auction_id); |
1446 | msg->getBOOLFast(_PREHASH_ParcelData, _PREHASH_ReservedNewbie, is_reserved); | ||
1447 | msg->getS32Fast( _PREHASH_ParcelData, _PREHASH_ClaimDate, claim_date); | 1446 | msg->getS32Fast( _PREHASH_ParcelData, _PREHASH_ClaimDate, claim_date); |
1448 | msg->getS32Fast( _PREHASH_ParcelData, _PREHASH_ClaimPrice, claim_price_per_meter); | 1447 | msg->getS32Fast( _PREHASH_ParcelData, _PREHASH_ClaimPrice, claim_price_per_meter); |
1449 | msg->getS32Fast( _PREHASH_ParcelData, _PREHASH_RentPrice, rent_price_per_meter); | 1448 | msg->getS32Fast( _PREHASH_ParcelData, _PREHASH_RentPrice, rent_price_per_meter); |
@@ -1480,7 +1479,6 @@ void LLViewerParcelMgr::processParcelProperties(LLMessageSystem *msg, void **use | |||
1480 | parcel->setAABBMax(aabb_max); | 1479 | parcel->setAABBMax(aabb_max); |
1481 | 1480 | ||
1482 | parcel->setAuctionID(auction_id); | 1481 | parcel->setAuctionID(auction_id); |
1483 | parcel->setReservedForNewbie(is_reserved); | ||
1484 | parcel->setOwnershipStatus((LLParcel::EOwnershipStatus)status); | 1482 | parcel->setOwnershipStatus((LLParcel::EOwnershipStatus)status); |
1485 | 1483 | ||
1486 | parcel->setSimWideMaxPrimCapacity(sw_max_prims); | 1484 | parcel->setSimWideMaxPrimCapacity(sw_max_prims); |
@@ -2233,16 +2231,10 @@ bool LLViewerParcelMgr::canAgentBuyParcel(LLParcel* parcel, bool forGroup) const | |||
2233 | bool isOwner | 2231 | bool isOwner |
2234 | = parcelOwner == (forGroup ? gAgent.getGroupID() : gAgent.getID()); | 2232 | = parcelOwner == (forGroup ? gAgent.getGroupID() : gAgent.getID()); |
2235 | 2233 | ||
2236 | bool isAvailable | ||
2237 | = parcel->getReservedForNewbie() | ||
2238 | ? (!forGroup && gStatusBar->getSquareMetersCommitted() == 0) | ||
2239 | : true; | ||
2240 | // *TODO: should be based on never_owned_land, see SL-10728 | ||
2241 | |||
2242 | bool isAuthorized | 2234 | bool isAuthorized |
2243 | = (authorizeBuyer.isNull() || (gAgent.getID() == authorizeBuyer)); | 2235 | = (authorizeBuyer.isNull() || (gAgent.getID() == authorizeBuyer)); |
2244 | 2236 | ||
2245 | return isForSale && !isOwner && isAuthorized && isAvailable && isEmpowered; | 2237 | return isForSale && !isOwner && isAuthorized && isEmpowered; |
2246 | } | 2238 | } |
2247 | 2239 | ||
2248 | 2240 | ||
@@ -2587,6 +2579,6 @@ bool LLParcelSelection::hasOthersSelected() const | |||
2587 | 2579 | ||
2588 | LLParcelSelection* get_null_parcel_selection() | 2580 | LLParcelSelection* get_null_parcel_selection() |
2589 | { | 2581 | { |
2590 | static LLParcelSelectionHandle null_ptr = new LLParcelSelection(); | 2582 | static LLParcelSelection null_selection; |
2591 | return null_ptr; | 2583 | return &null_selection; |
2592 | } | 2584 | } |