summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrhyskidd@gmail.com <rhyskidd@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2012-07-16 16:01:12 +0000
committerrhyskidd@gmail.com <rhyskidd@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2012-07-16 16:01:12 +0000
commit03c8d6ebb157a31df1f62e5b8200bd7ad2d31a76 (patch)
treef3953a68e262abf99685e680fcddeef3f3b0ca83
parent7084c7521db8508c09624345700f4c8a83a97c01 (diff)
downloadstarshatter-03c8d6ebb157a31df1f62e5b8200bd7ad2d31a76.zip
starshatter-03c8d6ebb157a31df1f62e5b8200bd7ad2d31a76.tar.gz
starshatter-03c8d6ebb157a31df1f62e5b8200bd7ad2d31a76.tar.bz2
PVS-Studio fix: V624 The constant 3.1415 is being utilized. The resulting value could be inaccurate. Consider using the M_PI constant from <math.h>. mission.cpp 1203
-rw-r--r--Stars45/Mission.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Stars45/Mission.cpp b/Stars45/Mission.cpp
index 8d35812..777f78c 100644
--- a/Stars45/Mission.cpp
+++ b/Stars45/Mission.cpp
@@ -1200,7 +1200,7 @@ Mission::ParseRLoc(TermStruct* val)
double dex = 0;
double dex_var = 5e3;
double az = 0;
- double az_var = 3.1415;
+ double az_var = PI;
double el = 0;
double el_var = 0.1;