MSVC .NET 2003 fix
This commit is contained in:
@@ -815,8 +815,8 @@ double SGMetar::getRelHumidity() const
|
||||
{
|
||||
if (_temp == NaN || _dewp == NaN)
|
||||
return NaN;
|
||||
double dewp = pow(10, 7.5 * _dewp / (237.7 + _dewp));
|
||||
double temp = pow(10, 7.5 * _temp / (237.7 + _temp));
|
||||
double dewp = pow(10.0, 7.5 * _dewp / (237.7 + _dewp));
|
||||
double temp = pow(10.0, 7.5 * _temp / (237.7 + _temp));
|
||||
return dewp * 100 / temp;
|
||||
}
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ public:
|
||||
protected:
|
||||
|
||||
virtual int_type underflow();
|
||||
virtual int_type overflow( int_type c = traits_type::eof() );
|
||||
virtual int_type overflow( int_type c = streambuf::traits_type::eof() );
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -167,7 +167,7 @@ void SkyLight::Display() const
|
||||
mat.invLookAt(vecPos + 50 * vecDir, vecPos + 51 * vecDir, vecUp);
|
||||
|
||||
glMultMatrixf(mat);
|
||||
float rAlpha= acos(pow(10, (-12 / _rSpotExponent)));
|
||||
float rAlpha= acos(pow(10.0, (-12.0 / _rSpotExponent)));
|
||||
//glutWireCone(50 * tan(SKYDEGREESTORADS * rAlpha), 50, 16, 8);
|
||||
glutWireCone(50 * tan(SKYDEGREESTORADS * _rSpotCutoff), 50, 16, 8);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user