From c189fc0b579352c34285fcf03db4b5bca5cd3804 Mon Sep 17 00:00:00 2001 From: Aaron Brashears Date: Thu, 18 Jan 2007 00:44:48 +0000 Subject: Result of svn merge -r56700:56797 svn+ssh://svn/svn/linden/branches/more-random into release. --- indra/newview/llviewerpartsim.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'indra/newview/llviewerpartsim.cpp') 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; } -- cgit v1.2.3