From b4ce78b33914a176ad55a711123709c899199541 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Mon, 14 Oct 2013 21:00:31 +0000 Subject: [PATCH] Fixed compiler warnings. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14256 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/modes/soccer_world.cpp | 2 +- src/states_screens/race_gui.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modes/soccer_world.cpp b/src/modes/soccer_world.cpp index bdd27cbbb..b268391f8 100644 --- a/src/modes/soccer_world.cpp +++ b/src/modes/soccer_world.cpp @@ -393,7 +393,7 @@ void SoccerWorld::initKartList() for(unsigned int i=0; igetKartModel()->getHeight()+0.5; + float arrow_pos_height = m_karts[i]->getKartModel()->getHeight()+0.5f; if(race_manager->getLocalKartInfo(i).getSoccerTeam() == SOCCER_TEAM_RED) arrowNode = irr_driver->addBillboard(core::dimension2d(0.3f,0.3f), diff --git a/src/states_screens/race_gui.cpp b/src/states_screens/race_gui.cpp index 9b808ac23..b35a8983b 100644 --- a/src/states_screens/race_gui.cpp +++ b/src/states_screens/race_gui.cpp @@ -275,8 +275,8 @@ void RaceGUI::drawScores() default: break; } core::rect indicatorPos(offsetX, offsetY, - offsetX + m_marker_player_size/1.25, - offsetY + m_marker_player_size/1.25); + offsetX + (int)(m_marker_player_size/1.25f), + offsetY + (int)(m_marker_player_size/1.25f)); core::rect sourceRect(core::position2d(0,0), team_icon->getOriginalSize()); irr_driver->getVideoDriver()->draw2DImage(team_icon,indicatorPos,sourceRect,