aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerpartsim.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewerpartsim.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/linden/indra/newview/llviewerpartsim.cpp b/linden/indra/newview/llviewerpartsim.cpp
index 267f0c8..1788a7c 100644
--- a/linden/indra/newview/llviewerpartsim.cpp
+++ b/linden/indra/newview/llviewerpartsim.cpp
@@ -70,7 +70,7 @@ U32 LLViewerPart::sNextPartID = 1;
70 70
71F32 calc_desired_size(LLVector3 pos, LLVector2 scale) 71F32 calc_desired_size(LLVector3 pos, LLVector2 scale)
72{ 72{
73 F32 desired_size = (pos-gCamera->getOrigin()).magVec(); 73 F32 desired_size = (pos-LLViewerCamera::getInstance()->getOrigin()).magVec();
74 desired_size /= 4; 74 desired_size /= 4;
75 return llclamp(desired_size, scale.magVec()*0.5f, PART_SIM_BOX_SIDE*2); 75 return llclamp(desired_size, scale.magVec()*0.5f, PART_SIM_BOX_SIDE*2);
76} 76}
@@ -121,7 +121,7 @@ LLViewerPartGroup::LLViewerPartGroup(const LLVector3 &center_agent, const F32 bo
121 mVOPartGroupp = NULL; 121 mVOPartGroupp = NULL;
122 mUniformParticles = TRUE; 122 mUniformParticles = TRUE;
123 123
124 mRegionp = gWorldPointer->getRegionFromPosAgent(center_agent); 124 mRegionp = LLWorld::getInstance()->getRegionFromPosAgent(center_agent);
125 llassert_always(center_agent.isFinite()); 125 llassert_always(center_agent.isFinite());
126 126
127 if (!mRegionp) 127 if (!mRegionp)
@@ -243,7 +243,7 @@ void LLViewerPartGroup::updateParticles(const F32 lastdt)
243 S32 i; 243 S32 i;
244 F32 dt; 244 F32 dt;
245 245
246 LLVector3 gravity(0.f, 0.f, -9.8f); 246 LLVector3 gravity(0.f, 0.f, GRAVITY);
247 247
248 LLViewerRegion *regionp = getRegion(); 248 LLViewerRegion *regionp = getRegion();
249 S32 end = (S32) mParticles.size(); 249 S32 end = (S32) mParticles.size();
@@ -371,7 +371,7 @@ void LLViewerPartGroup::updateParticles(const F32 lastdt)
371 if (!posInGroup(part.mPosAgent, desired_size)) 371 if (!posInGroup(part.mPosAgent, desired_size))
372 { 372 {
373 // Transfer particles between groups 373 // Transfer particles between groups
374 gWorldPointer->mPartSim.put(&part); 374 LLViewerPartSim::getInstance()->put(&part);
375 end--; 375 end--;
376 LLPointer<LLViewerPart>::swap(mParticles[i], mParticles[end]); 376 LLPointer<LLViewerPart>::swap(mParticles[i], mParticles[end]);
377 // be sure to process the particle we just swapped-in 377 // be sure to process the particle we just swapped-in
@@ -445,7 +445,7 @@ LLViewerPartSim::LLViewerPartSim()
445} 445}
446 446
447 447
448LLViewerPartSim::~LLViewerPartSim() 448void LLViewerPartSim::destroyClass()
449{ 449{
450 LLMemType mt(LLMemType::MTYPE_PARTICLES); 450 LLMemType mt(LLMemType::MTYPE_PARTICLES);
451 S32 i; 451 S32 i;