Make overworld GUI cleaner by removing timer and rank

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10459 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-12-20 20:08:19 +00:00
parent 1998aa11f3
commit 32f8666d10
3 changed files with 7 additions and 2 deletions

View File

@ -31,6 +31,7 @@ OverWorld::OverWorld() : LinearWorld()
void OverWorld::init()
{
LinearWorld::init();
m_display_rank = false;
} // init
//-----------------------------------------------------------------------------

View File

@ -52,9 +52,13 @@ public:
// ------------------------------------------------------------------------
/** The overworld is not a race per se so it's never over */
virtual bool isRaceOver() { return false; }
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
/** Implement base class method */
virtual const std::string&
getIdent() const { return IDENT_OVERWORLD; }
// ------------------------------------------------------------------------
/** Override base class method */
virtual bool shouldDrawTimer() const { return false; }
};
#endif

View File

@ -252,7 +252,7 @@ public:
// ------------------------------------------------------------------------
/** The code that draws the timer should call this first to know
* whether the game mode wants a timer drawn. */
bool shouldDrawTimer() const { return isRacePhase() &&
virtual bool shouldDrawTimer() const { return isRacePhase() &&
getClockMode() != CLOCK_NONE; }
// ------------------------------------------------------------------------
/** \return whether this world can generate/have highscores */