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
This commit is contained in:
torcs-ng 2013-07-15 18:08:24 +00:00
parent bf0c5fc1c5
commit 20c718242b

View file

@ -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;