MSVC .NET 2003 fix

This commit is contained in:
ehofman
2004-03-07 09:36:31 +00:00
parent d6b81a9721
commit 3b3baa996b
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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