From 20c718242b2d02ef703ef0255602e37acdf7da17 Mon Sep 17 00:00:00 2001 From: torcs-ng Date: Mon, 15 Jul 2013 18:08:24 +0000 Subject: [PATCH] fix bug with OsgMoon git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5595 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 18f1504df9d09d3da74110a0a553976fa2cea28a Former-commit-id: cc3fb79dff0a2185d7b45ce4f61b9d8746dfe4aa --- src/modules/graphic/osggraph/OsgSky/OsgSphere.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphic/osggraph/OsgSky/OsgSphere.cpp b/src/modules/graphic/osggraph/OsgSky/OsgSphere.cpp index 9bb0e1f06..d6d35493d 100644 --- a/src/modules/graphic/osggraph/OsgSky/OsgSphere.cpp +++ b/src/modules/graphic/osggraph/OsgSky/OsgSphere.cpp @@ -35,7 +35,7 @@ osg::Node* SDMakeSphere(double radius, int slices, int stacks) osg::Geode* geode = new osg::Geode; drho = SD_PI / (float) stacks; - dtheta = SD_2PI / (float) slices; + dtheta = (2.0 * SD_PI) / (float) slices; ds = 1.0 / slices; dt = 1.0 / stacks;