Fixed compiler warnings

This commit is contained in:
Deve 2015-10-04 16:54:14 +02:00
parent ec33e92ad0
commit 6318e8c8f8
2 changed files with 3 additions and 3 deletions

View File

@ -1013,7 +1013,7 @@ int handleCmdLine()
// Demo mode
if(CommandLine::has("--demo-mode", &s))
{
float t;
float t = 0;
StringUtils::fromString(s, t);
DemoWorld::enableDemoMode(t);
// The default number of laps is taken from ProfileWorld and

View File

@ -831,8 +831,8 @@ void RaceGUI::drawLap(const AbstractKart* kart,
// If the time display in the top right is in this viewport,
// move the lap/rank display down a little bit so that it is
// displayed under the time.
if(viewport.UpperLeftCorner.Y==0 &&
viewport.LowerRightCorner.X==irr_driver->getActualScreenSize().Width &&
if (viewport.UpperLeftCorner.Y==0 &&
viewport.LowerRightCorner.X==(int)(irr_driver->getActualScreenSize().Width) &&
race_manager->getNumPlayers()!=3)
pos.UpperLeftCorner.Y += m_font_height;
pos.LowerRightCorner.Y = viewport.LowerRightCorner.Y+20;