From 88dba335574e5ce428a5a00b744e1556b93d1752 Mon Sep 17 00:00:00 2001 From: torcs-ng Date: Mon, 26 Jul 2010 15:51:13 +0000 Subject: [PATCH] git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@2572 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 4ae97130153aceaa3c1b055f3f194a3827b135d4 Former-commit-id: 5fc7aacf1981c89f38ca2f580b6a8ebf26e0559b --- src/modules/graphic/ssggraph/grscene.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/graphic/ssggraph/grscene.cpp b/src/modules/graphic/ssggraph/grscene.cpp index d8adb4f9..504b81f5 100644 --- a/src/modules/graphic/ssggraph/grscene.cpp +++ b/src/modules/graphic/ssggraph/grscene.cpp @@ -226,7 +226,7 @@ grInitScene(void) //Add the Sun itself //ssgaCelestialBody *bodies[MAX_BODIES] = { NULL }; - bodies[SUN] = Sky->addBody(NULL, "data/textures/halo.rgba", (2500 / div), skydynamic, true); + bodies[SUN] = Sky->addBody(NULL, "data/textures/halo.rgba", (2500 / div), skydynamic, true); GLfloat sunpos1 = 0.0f; GLfloat sunpos2 = 0.0f; int cloudtype = 0; @@ -1090,11 +1090,11 @@ grUpdateTime(tSituation *s) /* Update */ sd = sd + 0.25f; - if (sd > 359.9) - sd = 0.0; + if (sd > 359.9f) + sd = 0.0f; sd2 = sd2 + 0.25f; - if (sd2 > 359.9) - sd2 = 0.0; + if (sd2 > 359.9f) + sd2 = 0.0f; bodies[SUN]->setDeclination ( sd * SGD_DEGREES_TO_RADIANS); bodies[MOON]->setDeclination ( sd2 * SGD_DEGREES_TO_RADIANS ); @@ -1135,5 +1135,5 @@ grUpdateTime(tSituation *s) scene_specular[0] = base_specular[0] * (float)scene_brightness; scene_specular[1] = base_specular[1] * (float)scene_brightness; scene_specular[2] = base_specular[2] * (float)scene_brightness; - scene_specular[3] = 1.0; + scene_specular[3] = 1.0; }