diff options
Diffstat (limited to 'linden/indra/newview/llstatusbar.cpp')
-rw-r--r-- | linden/indra/newview/llstatusbar.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linden/indra/newview/llstatusbar.cpp b/linden/indra/newview/llstatusbar.cpp index 58ac8c2..784765b 100644 --- a/linden/indra/newview/llstatusbar.cpp +++ b/linden/indra/newview/llstatusbar.cpp | |||
@@ -643,3 +643,8 @@ void LLStatusBar::onClickBuyLand(void*) | |||
643 | gParcelMgr->selectParcelAt(gAgent.getPositionGlobal()); | 643 | gParcelMgr->selectParcelAt(gAgent.getPositionGlobal()); |
644 | gParcelMgr->startBuyLand(); | 644 | gParcelMgr->startBuyLand(); |
645 | } | 645 | } |
646 | |||
647 | BOOL can_afford_transaction(S32 cost) | ||
648 | { | ||
649 | return((cost <= 0)||((gStatusBar) && (gStatusBar->getBalance() >=cost))); | ||
650 | } | ||