aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorPatrick Sapinski2011-03-02 02:35:40 -0500
committerMcCabe Maxsted2011-03-10 13:19:47 -0700
commit3c471bb3ed3cf5081d52d9318f860abfcdafd0ae (patch)
tree35f383a76dcd3f78a8b231d3dd6ab77b65d962fc /linden/indra
parentfix for AO from Emerald (diff)
downloadmeta-impy-3c471bb3ed3cf5081d52d9318f860abfcdafd0ae.zip
meta-impy-3c471bb3ed3cf5081d52d9318f860abfcdafd0ae.tar.gz
meta-impy-3c471bb3ed3cf5081d52d9318f860abfcdafd0ae.tar.bz2
meta-impy-3c471bb3ed3cf5081d52d9318f860abfcdafd0ae.tar.xz
moved the AO inventory preloading to a better place, a place where it actually works.
Does anyone even read this? IF YOU SEE THIS TEXT YOU HAVE WON $500, MESSAGE ME TO COLLECT YOUR PRIZE.
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/newview/floaterao.cpp23
-rw-r--r--linden/indra/newview/floaterao.h2
2 files changed, 13 insertions, 12 deletions
diff --git a/linden/indra/newview/floaterao.cpp b/linden/indra/newview/floaterao.cpp
index d880722..df88d6f 100644
--- a/linden/indra/newview/floaterao.cpp
+++ b/linden/indra/newview/floaterao.cpp
@@ -119,6 +119,9 @@ AOInvTimer::AOInvTimer() : LLEventTimer( (F32)1.0 )
119AOInvTimer::~AOInvTimer() 119AOInvTimer::~AOInvTimer()
120{ 120{
121} 121}
122
123BOOL AOInvTimer::fullfetch = FALSE;
124
122BOOL AOInvTimer::tick() 125BOOL AOInvTimer::tick()
123{ 126{
124 if (!(gSavedSettings.getBOOL("AOEnabled"))) return TRUE; 127 if (!(gSavedSettings.getBOOL("AOEnabled"))) return TRUE;
@@ -129,6 +132,15 @@ BOOL AOInvTimer::tick()
129// cmdline_printchat("Inventory fetched, loading AO."); 132// cmdline_printchat("Inventory fetched, loading AO.");
130 LLFloaterAO::init(); 133 LLFloaterAO::init();
131 return TRUE; 134 return TRUE;
135 }else
136 {
137 //static BOOL startedfetch = FALSE;
138 if(fullfetch == FALSE)
139 {
140 fullfetch = TRUE;
141 //no choice, can't move the AO till we find it, should only have to happen once
142 gInventory.startBackgroundFetch();
143 }
132 } 144 }
133 } 145 }
134 return FALSE; 146 return FALSE;
@@ -601,8 +613,6 @@ void LLFloaterAO::updateLayout(LLFloaterAO* floater)
601 } 613 }
602} 614}
603 615
604BOOL LLFloaterAO::fullfetch = FALSE;
605
606void LLFloaterAO::init() 616void LLFloaterAO::init()
607{ 617{
608 mAOStands.clear(); 618 mAOStands.clear();
@@ -697,15 +707,6 @@ void LLFloaterAO::init()
697 success = TRUE; 707 success = TRUE;
698 } 708 }
699 } 709 }
700 }else
701 {
702 //static BOOL startedfetch = FALSE;
703 if(fullfetch == FALSE)
704 {
705 fullfetch = TRUE;
706 //no choice, can't move the AO till we find it, should only have to happen once
707 gInventory.startBackgroundFetch();
708 }
709 } 710 }
710 } 711 }
711 } 712 }
diff --git a/linden/indra/newview/floaterao.h b/linden/indra/newview/floaterao.h
index ed60140..465f32e 100644
--- a/linden/indra/newview/floaterao.h
+++ b/linden/indra/newview/floaterao.h
@@ -51,6 +51,7 @@ public:
51class AOInvTimer : public LLEventTimer 51class AOInvTimer : public LLEventTimer
52{ 52{
53public: 53public:
54 static BOOL fullfetch;
54 AOInvTimer(); 55 AOInvTimer();
55 ~AOInvTimer(); 56 ~AOInvTimer();
56 BOOL tick(); 57 BOOL tick();
@@ -66,7 +67,6 @@ public:
66 67
67 static void show(void*); 68 static void show(void*);
68 static void init(); 69 static void init();
69 static BOOL fullfetch;
70 70
71 static void onClickToggleAO(LLUICtrl *, void*); 71 static void onClickToggleAO(LLUICtrl *, void*);
72 static void onClickToggleSits(LLUICtrl *, void*); 72 static void onClickToggleSits(LLUICtrl *, void*);