Removed VS compiler warning.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3929 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2009-08-27 03:52:31 +00:00
parent 276f3575e4
commit af6e19e21d

View File

@@ -154,7 +154,7 @@ void RibbonGridWidget::setSubElements()
std::cout << "item_count=" << item_count << ", row_amount*m_col_amount=" << m_row_amount*m_col_amount << std::endl;
if (m_row_amount*m_col_amount > item_count)
{
m_col_amount = ceil((float)item_count/(float)m_row_amount);
m_col_amount = (int)ceil((float)item_count/(float)m_row_amount);
std::cout << "Adjusting m_col_amount to be " << m_col_amount << std::endl;
}