Fixed compiler warnings.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12339 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2013-01-06 12:12:47 +00:00
parent 47b5a604af
commit 7f98f7194d

View File

@ -302,13 +302,13 @@ void ScalableFont::setMaxHeight()
if (info.m_exclude_from_max_height_calculation) continue;
float char_scale = info.m_scale;
t *= char_scale;
t = (int)(t*char_scale);
if (t>MaxHeight)
MaxHeight = t;
}
MaxHeight = MaxHeight*m_scale;
MaxHeight = (int)(MaxHeight*m_scale);
}