Updated LLViewerParcelMgr.
Added LLViewerParcelMgr::setTeleportFinishedCallback, setTeleportFailedCallback. Not hooked into anything yet, however. agentCanBuild, agentCanFly, etc, renamed.
This commit is contained in:
@@ -334,9 +334,8 @@ LLFloaterBuyLandUI::LLFloaterBuyLandUI()
|
||||
|
||||
LLFloaterBuyLandUI::~LLFloaterBuyLandUI()
|
||||
{
|
||||
LLViewerParcelMgr::getInstance()->deleteParcelBuy(&mParcelBuyInfo);
|
||||
delete mTransaction;
|
||||
|
||||
LLViewerParcelMgr::getInstance()->deleteParcelBuy(mParcelBuyInfo);
|
||||
|
||||
if (sInstance == this)
|
||||
{
|
||||
@@ -494,10 +493,18 @@ void LLFloaterBuyLandUI::updateParcelInfo()
|
||||
return;
|
||||
}
|
||||
|
||||
if (!authorizedBuyer.isNull() && buyer != authorizedBuyer)
|
||||
if (!authorizedBuyer.isNull() && buyer != authorizedBuyer)
|
||||
{
|
||||
mCannotBuyReason = getString("set_to_sell_to_other");
|
||||
return;
|
||||
// Maybe the parcel is set for sale to a group we are in.
|
||||
bool authorized_group =
|
||||
gAgent.hasPowerInGroup(authorizedBuyer,GP_LAND_DEED)
|
||||
&& gAgent.hasPowerInGroup(authorizedBuyer,GP_LAND_SET_SALE_INFO);
|
||||
|
||||
if (!authorized_group)
|
||||
{
|
||||
mCannotBuyReason = getString("set_to_sell_to_other");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -807,7 +814,7 @@ void LLFloaterBuyLandUI::sendBuyLand()
|
||||
if (mParcelBuyInfo)
|
||||
{
|
||||
LLViewerParcelMgr::getInstance()->sendParcelBuy(mParcelBuyInfo);
|
||||
LLViewerParcelMgr::getInstance()->deleteParcelBuy(mParcelBuyInfo);
|
||||
LLViewerParcelMgr::getInstance()->deleteParcelBuy(&mParcelBuyInfo);
|
||||
mBought = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user