Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Dietz <dekarl@users.sourceforge.net>2010-02-08 20:11:46 +0300
committerThorvald Natvig <slicer@users.sourceforge.net>2010-02-23 17:31:55 +0300
commitd8e25b0d5ff7c6291fbf0b44d27b8a227848103f (patch)
tree05195b962e41700694fa7f6bb05a036423555198 /plugins/lotro
parentcaee7c8129453300539365415402547b20c2f575 (diff)
LOTRO use Pi from math.h
Diffstat (limited to 'plugins/lotro')
-rw-r--r--plugins/lotro/lotro.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/lotro/lotro.cpp b/plugins/lotro/lotro.cpp
index 7b317c7e2..74ded230b 100644
--- a/plugins/lotro/lotro.cpp
+++ b/plugins/lotro/lotro.cpp
@@ -185,9 +185,9 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa
avatar_pos[1] = o[2];
avatar_pos[2] = (float)l[1] * 160.0 + o[1];
- avatar_front[0] = sin(h * 3.14159265 / 180.0);
+ avatar_front[0] = sin(h * M_PI / 180.0);
avatar_front[1] = 0.0f;
- avatar_front[2] = cos(h * 3.14159265 / 180.0);
+ avatar_front[2] = cos(h * M_PI / 180.0);
avatar_top[0] = 0.0;
avatar_top[1] = 1.0;