Fixed VS compilation problem (log from integer value).

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6102 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2010-09-21 04:46:57 +00:00
parent 1b1224b244
commit 3bc2a8b93d

View File

@@ -205,7 +205,7 @@ void DynamicRibbonWidget::add()
// get a better score. A number of rows that allows showing very few items
// will be penalized. A configuration that makes items much smaller than
// requested in the XML file will also be penalized.
const int score = int(log(2*visible_items) *
const int score = int(log(2.0f*visible_items) *
std::min((float)item_height / (float)m_child_height, 1.0f) *
taken_area);