summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerpartsim.cpp
diff options
context:
space:
mode:
authorAaron Brashears <aaronb@lindenlab.com>2007-01-18 00:44:48 +0000
committerAaron Brashears <aaronb@lindenlab.com>2007-01-18 00:44:48 +0000
commitc189fc0b579352c34285fcf03db4b5bca5cd3804 (patch)
treeba32536c8bf3b23f311e7ae77aa69f9cbaec4582 /indra/newview/llviewerpartsim.cpp
parent73f0b5029aa247a563862fc39152ce58baa407aa (diff)
Result of svn merge -r56700:56797 svn+ssh://svn/svn/linden/branches/more-random into release.
Diffstat (limited to 'indra/newview/llviewerpartsim.cpp')
-rw-r--r--indra/newview/llviewerpartsim.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llviewerpartsim.cpp b/indra/newview/llviewerpartsim.cpp
index b67062e0a9..db18b74d1f 100644
--- a/indra/newview/llviewerpartsim.cpp
+++ b/indra/newview/llviewerpartsim.cpp
@@ -399,7 +399,7 @@ BOOL LLViewerPartSim::shouldAddPart()
F32 frac = (F32)sParticleCount/(F32)sMaxParticleCount;
frac -= 0.75;
frac *= 3.f;
- if (frand(1.f) < frac)
+ if (ll_frand() < frac)
{
// Skip...
return FALSE;
@@ -530,9 +530,9 @@ void LLViewerPartSim::updateSimulation()
// pain.
S32 i;
S32 count = mViewerPartSources.count();
- S32 start = (S32)frand((F32)count);
+ S32 start = (S32)ll_frand((F32)count);
S32 dir = 1;
- if (frand(1.0) > 0.5f)
+ if (ll_frand() > 0.5f)
{
dir = -1;
}