]> git.mxchange.org Git - simgear.git/commitdiff
Fixed a typo in the sky dome painting code.
authorcurt <curt>
Thu, 2 Mar 2000 19:06:28 +0000 (19:06 +0000)
committercurt <curt>
Thu, 2 Mar 2000 19:06:28 +0000 (19:06 +0000)
simgear/sky/skydome.cxx

index 48d62bfed2bf655edb79613bd3fbe9c0c0fd328e..1a1abc428572fce2b68bf875b39691369d8f09b1 100644 (file)
@@ -362,7 +362,7 @@ bool FGSkyDome::repaint( sgVec3 sky_color, sgVec3 fog_color, double sun_angle )
            if ( middle_color[i][j] > 1.0 ) { middle_color[i][j] = 1.0; }
            if ( middle_color[i][j] < 0.1 ) { middle_color[i][j] = 0.1; }
            if ( lower_color[i][j] > 1.0 ) { lower_color[i][j] = 1.0; }
-           if ( lower_color[i][j] < 35 ) { lower_color[i][j] = 35; }
+           if ( lower_color[i][j] < 0.1 ) { lower_color[i][j] = 0.1; }
        }
        // upper_color[i][3] = middle_color[i][3] = lower_color[i][3] = 
        //                     (GLubyte)(sky_color[3] * 1.0);