- FScanner::Float is a double so there's no need to cast values to float before assigning them to this variable.

SVN r2865 (trunk)
This commit is contained in:
Christoph Oelckers 2010-09-29 07:25:14 +00:00
parent bc08502132
commit 5be9729872
2 changed files with 3 additions and 15 deletions

View File

@ -868,18 +868,6 @@ void AM_initVariables ()
old_m_h = m_h;
}
/*
static void GetComponents (int color, DWORD *palette, float &r, float &g, float &b)
{
if (palette)
color = palette[color];
r = (float)RPART(color);
g = (float)GPART(color);
b = (float)BPART(color);
}
*/
//=============================================================================
//
//

View File

@ -606,7 +606,7 @@ bool FScanner::GetNumber ()
ScriptError ("SC_GetNumber: Bad numeric constant \"%s\".", String);
}
}
Float = (float)Number;
Float = Number;
return true;
}
else
@ -662,7 +662,7 @@ bool FScanner::CheckNumber ()
return false;
}
}
Float = (float)Number;
Float = Number;
return true;
}
else
@ -719,7 +719,7 @@ bool FScanner::GetFloat ()
CheckOpen ();
if (GetString())
{
Float = (float)strtod (String, &stopper);
Float = strtod (String, &stopper);
if (*stopper != 0)
{
ScriptError ("SC_GetFloat: Bad numeric constant \"%s\".", String);