diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewerpartsim.cpp | 6 |
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 | } |