Fixed compiler warning.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8735 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-05-29 11:47:43 +00:00
parent 9fa0b18d84
commit 4ccf633289
2 changed files with 2 additions and 2 deletions

View File

@ -246,7 +246,7 @@ void DynamicRibbonWidget::add()
// huge icons not so good either
if (ratio > 1.0f)
{
ratio = 1.0 - ratio/5.0f;
ratio = 1.0f - ratio/5.0f;
if (ratio < 0.0f) ratio = 0.0f;
}

View File

@ -594,7 +594,7 @@ void RaceResultGUI::displayOneEntry(unsigned int x, unsigned int y,
// if we have highscores, move items to the left to have some more room...
if (m_highscore_player != NULL)
{
x -= m_table_width/3.0f;
x -= (int)(m_table_width/3.0f);
}
#ifdef USE_PER_LINE_BACKGROUND