Fixed warnings
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5694 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
2a4570f6c6
commit
b1c970684c
@ -185,8 +185,10 @@ int Widget::getNewNoFocusID()
|
||||
|
||||
bool Widget::isFocusableId(const int id)
|
||||
{
|
||||
if (id >= unfocusableIdsBase) return false;
|
||||
else return true;
|
||||
if (id < 0) return false;
|
||||
|
||||
if ((unsigned int)id >= unfocusableIdsBase) return false;
|
||||
else return true;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
#include "guiengine/engine.hpp"
|
||||
#include "modes/world.hpp"
|
||||
#include "states_screens/dialogs/race_over_dialog.hpp"
|
||||
#include "states_screens/dialogs/race_over_dialog.hpp"
|
||||
#include "utils/string_utils.hpp"
|
||||
|
||||
/** Constructor, initialises internal data structures.
|
||||
@ -198,4 +198,4 @@ void RaceResultGUI::displayOneEntry(unsigned int x, unsigned int y,
|
||||
UserConfigParams::m_width, y+m_distance_between_rows);
|
||||
|
||||
m_font->draw(m_entry[n], pos, color);
|
||||
} // displayOneEntry
|
||||
} // displayOneEntry
|
||||
|
Loading…
Reference in New Issue
Block a user