summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2009-11-06 13:27:28 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2009-11-06 13:27:28 +0000
commit904f6124b282e3e9668289bef9f7d44f8539ce51 (patch)
tree38c1ad84a20240d48b1c31e4d6d569122bf1b724 /indra/newview/pipeline.cpp
parentd78520f6b7fd4a20bbb1d1291a34761efc1fd740 (diff)
magic number removal rampage: 3.14159 -> M_PI or F_PI
--HG-- branch : texture-pipeline
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r--indra/newview/pipeline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index b50e71bf48..f2442a49c0 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -1474,7 +1474,7 @@ F32 LLPipeline::calcPixelArea(LLVector3 center, LLVector3 size, LLCamera &camera
//get area of circle around node
F32 app_angle = atanf(size.length()/dist);
F32 radius = app_angle*LLDrawable::sCurPixelAngle;
- return radius*radius * 3.14159f;
+ return radius*radius * F_PI;
}
void LLPipeline::grabReferences(LLCullResult& result)