Minor code cleanup (removed unused function).

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1493 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2008-02-14 07:41:18 +00:00
parent 7d4bfd3d13
commit 73aad215d0
2 changed files with 0 additions and 40 deletions

View File

@ -319,39 +319,6 @@ void RaceGUI::drawMap ()
} // drawMap
//-----------------------------------------------------------------------------
// This is displayed during the 'delay_finish_phase', i.e. while waiting for
// other karts to finish the race
void RaceGUI::drawGameOverText (const float dt)
{
static float timer = 0 ;
/* Calculate a color. This will result in an animation effect. */
int red = (int)(255 * sin ( (float)timer/5.1f ) / 2.0f + 0.5f);
int green = (int)(255 * (sin ( (float)timer/6.3f ) / 2.0f + 0.5f));
int blue = (int)(255 * sin ( (float)timer/7.2f ) / 2.0f + 0.5f);
timer += dt;
assert(world != NULL);
int finishing_position = world->getPlayerKart(0)->getPosition();
if ( finishing_position > 1 )
{
char s[255];
sprintf(s,_("YOU FINISHED %s"),m_pos_string[finishing_position]);
font_race->PrintShadow(s, 64, 130, 300, red, green, blue);
}
else
{
font_race->PrintShadow(_("CONGRATULATIONS"), 64, 130, 300,
red, green, blue);
font_race->PrintShadow(_("YOU WON THE RACE!"), 64, 130, 210,
red, green, blue);
}
} // drawGameOverText
//-----------------------------------------------------------------------------
// Draw players position on the race
void RaceGUI::drawPlayerIcons ()
{
@ -956,12 +923,6 @@ void RaceGUI::drawStatusText (const RaceSetup& raceSetup, const float dt)
if(raceSetup.getNumPlayers() >= 3)
split_screen_ratio_x = 0.5;
if ( world->getPhase() == World::FINISH_PHASE )
{
// FIXME: is this still used? It should be replaced by a special
// end page.
drawGameOverText(dt) ;
} // if FINISH_PHASE
if ( world->isRacePhase() )
{
const int numPlayers = raceSetup.getNumPlayers();

View File

@ -95,7 +95,6 @@ private:
float ratio_x, float ratio_y );
void drawPlayerIcons ();
void oldDrawPlayerIcons ();
void drawGameOverText (const float dt);
void drawMap ();
void drawTimer ();
void drawFPS ();