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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user