cleanup pi

use only one constant for Pi, in case we ever need to change it
This commit is contained in:
ac-stef
2017-04-28 15:18:00 +02:00
parent 967fd62077
commit 68c7ad1fe6
9 changed files with 21 additions and 78 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ void renderentarrow(const entity &e, const vec &dir, float radius)
loopi(5)
{
vec p(spoke);
p.rotate(2*M_PI*i/4.0f, dir);
p.rotate(PI2 * i / 4.0f, dir);
p.add(arrowbase);
glVertex3fv(p.v);
}