aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvograss.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llvograss.cpp')
-rw-r--r--linden/indra/newview/llvograss.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/newview/llvograss.cpp b/linden/indra/newview/llvograss.cpp
index 048ae61..58e5378 100644
--- a/linden/indra/newview/llvograss.cpp
+++ b/linden/indra/newview/llvograss.cpp
@@ -229,26 +229,26 @@ void LLVOGrass::initClass()
229 { 229 {
230 if (1) //(i%2 == 0) Uncomment for X blading 230 if (1) //(i%2 == 0) Uncomment for X blading
231 { 231 {
232 F32 u = sqrt(-2.0f * log(frand(1.0))); 232 F32 u = sqrt(-2.0f * log(ll_frand()));
233 F32 v = 2.0f * F_PI * frand(1.0); 233 F32 v = 2.0f * F_PI * ll_frand();
234 234
235 x = u * sin(v) * GRASS_DISTRIBUTION_SD; 235 x = u * sin(v) * GRASS_DISTRIBUTION_SD;
236 y = u * cos(v) * GRASS_DISTRIBUTION_SD; 236 y = u * cos(v) * GRASS_DISTRIBUTION_SD;
237 237
238 rot = frand(F_PI); 238 rot = ll_frand(F_PI);
239 } 239 }
240 else 240 else
241 { 241 {
242 rot += (F_PI*0.4f + frand(0.2f*F_PI)); 242 rot += (F_PI*0.4f + ll_frand(0.2f*F_PI));
243 } 243 }
244 244
245 exp_x[i] = x; 245 exp_x[i] = x;
246 exp_y[i] = y; 246 exp_y[i] = y;
247 rot_x[i] = sin(rot); 247 rot_x[i] = sin(rot);
248 rot_y[i] = cos(rot); 248 rot_y[i] = cos(rot);
249 dz_x[i] = frand(GRASS_BLADE_BASE * 0.25f); 249 dz_x[i] = ll_frand(GRASS_BLADE_BASE * 0.25f);
250 dz_y[i] = frand(GRASS_BLADE_BASE * 0.25f); 250 dz_y[i] = ll_frand(GRASS_BLADE_BASE * 0.25f);
251 w_mod[i] = 0.5f + frand(1.f); // Degree to which blade is moved by wind 251 w_mod[i] = 0.5f + ll_frand(); // Degree to which blade is moved by wind
252 252
253 } 253 }
254} 254}