Fixed compiler warnings
This commit is contained in:
parent
ec33e92ad0
commit
6318e8c8f8
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user