Removed Visual Studio compiler warnings.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1729 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2008-04-24 04:10:32 +00:00
parent f223c02865
commit 5ac7f44802

View File

@ -854,7 +854,7 @@ void WidgetManager::setInitialBorderState
)
{
m_default_show_border = SHOW;
m_default_border_percentage = PERCENTAGE * 0.01;
m_default_border_percentage = PERCENTAGE * 0.01f;
m_default_border_color = COLOR;
}
@ -1056,7 +1056,7 @@ void WidgetManager::setWgtBorderPercentage(const int TOKEN, const int PERCENTAGE
}
const int ID = findId(TOKEN);
if( ID != WGT_NONE ) m_widgets[ID].widget->m_border_percentage = PERCENTAGE * 0.01;
if( ID != WGT_NONE ) m_widgets[ID].widget->m_border_percentage = PERCENTAGE * 0.01f;
else
{
std::cerr << "WARNING: tried to change the rect color of an " <<