summaryrefslogtreecommitdiff
path: root/indra/newview/llcloud.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/llcloud.cpp
parent73f0b5029aa247a563862fc39152ce58baa407aa (diff)
Result of svn merge -r56700:56797 svn+ssh://svn/svn/linden/branches/more-random into release.
Diffstat (limited to 'indra/newview/llcloud.cpp')
-rw-r--r--indra/newview/llcloud.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llcloud.cpp b/indra/newview/llcloud.cpp
index c7e69a043f..cdba49c40d 100644
--- a/indra/newview/llcloud.cpp
+++ b/indra/newview/llcloud.cpp
@@ -174,9 +174,9 @@ void LLCloudGroup::updatePuffCount()
for (i = current_puff_count; i < target_puff_count; i++)
{
puff_pos_global = mVOCloudsp->getPositionGlobal();
- F32 x = frand(256.f/CLOUD_GROUPS_PER_EDGE) - 128.f/CLOUD_GROUPS_PER_EDGE;
- F32 y = frand(256.f/CLOUD_GROUPS_PER_EDGE) - 128.f/CLOUD_GROUPS_PER_EDGE;
- F32 z = frand(CLOUD_HEIGHT_RANGE) - 0.5f*CLOUD_HEIGHT_RANGE;
+ F32 x = ll_frand(256.f/CLOUD_GROUPS_PER_EDGE) - 128.f/CLOUD_GROUPS_PER_EDGE;
+ F32 y = ll_frand(256.f/CLOUD_GROUPS_PER_EDGE) - 128.f/CLOUD_GROUPS_PER_EDGE;
+ F32 z = ll_frand(CLOUD_HEIGHT_RANGE) - 0.5f*CLOUD_HEIGHT_RANGE;
puff_pos_global += LLVector3d(x, y, z);
mCloudPuffs[i].mPositionGlobal = puff_pos_global;
mCloudPuffs[i].mAlpha = 0.01f;