Fixed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8699 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
255a9d5619
commit
8c22b21166
@ -242,7 +242,7 @@ void DynamicRibbonWidget::add()
|
|||||||
// will be penalized. A configuration that makes items much smaller than
|
// will be penalized. A configuration that makes items much smaller than
|
||||||
// requested in the XML file will also be penalized.
|
// requested in the XML file will also be penalized.
|
||||||
float ratio = (float)item_height / (float)m_child_height;
|
float ratio = (float)item_height / (float)m_child_height;
|
||||||
float total_area = m_w * m_h;
|
float total_area = (float)(m_w * m_h);
|
||||||
const float score = log(2.0f*visible_items) *
|
const float score = log(2.0f*visible_items) *
|
||||||
std::min(ratio, 1.0f) * std::min(taken_area/total_area, 1.0f);
|
std::min(ratio, 1.0f) * std::min(taken_area/total_area, 1.0f);
|
||||||
|
|
||||||
|
@ -718,7 +718,7 @@ void World::updateHighscores(int* best_highscore_rank, int* best_finish_time, st
|
|||||||
if (*best_highscore_rank == -1 || highscore_rank < *best_highscore_rank)
|
if (*best_highscore_rank == -1 || highscore_rank < *best_highscore_rank)
|
||||||
{
|
{
|
||||||
*best_highscore_rank = highscore_rank;
|
*best_highscore_rank = highscore_rank;
|
||||||
*best_finish_time = k->getFinishTime();
|
*best_finish_time = (int)(k->getFinishTime());
|
||||||
*highscore_who = k->getIdent();
|
*highscore_who = k->getIdent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user