aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerpartsim.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:48 -0500
committerJacek Antonelli2008-08-15 23:44:48 -0500
commit9b4f54c826ffa4f94efa866068c9d6ecdfb4b424 (patch)
tree2f8ae193ab487088962e628f1ee9dee2f5901f01 /linden/indra/newview/llviewerpartsim.cpp
parentSecond Life viewer sources 1.13.2.12 (diff)
downloadmeta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.zip
meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.gz
meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.bz2
meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.xz
Second Life viewer sources 1.13.2.15
Diffstat (limited to 'linden/indra/newview/llviewerpartsim.cpp')
-rw-r--r--linden/indra/newview/llviewerpartsim.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/newview/llviewerpartsim.cpp b/linden/indra/newview/llviewerpartsim.cpp
index 1175553..be2c90f 100644
--- a/linden/indra/newview/llviewerpartsim.cpp
+++ b/linden/indra/newview/llviewerpartsim.cpp
@@ -418,7 +418,7 @@ BOOL LLViewerPartSim::shouldAddPart()
418 F32 frac = (F32)sParticleCount/(F32)sMaxParticleCount; 418 F32 frac = (F32)sParticleCount/(F32)sMaxParticleCount;
419 frac -= 0.75; 419 frac -= 0.75;
420 frac *= 3.f; 420 frac *= 3.f;
421 if (frand(1.f) < frac) 421 if (ll_frand() < frac)
422 { 422 {
423 // Skip... 423 // Skip...
424 return FALSE; 424 return FALSE;
@@ -549,9 +549,9 @@ void LLViewerPartSim::updateSimulation()
549 // pain. 549 // pain.
550 S32 i; 550 S32 i;
551 S32 count = mViewerPartSources.count(); 551 S32 count = mViewerPartSources.count();
552 S32 start = (S32)frand((F32)count); 552 S32 start = (S32)ll_frand((F32)count);
553 S32 dir = 1; 553 S32 dir = 1;
554 if (frand(1.0) > 0.5f) 554 if (ll_frand() > 0.5f)
555 { 555 {
556 dir = -1; 556 dir = -1;
557 } 557 }