fixed bug with number of zippers in TT mode

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2621 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2008-12-11 18:53:31 +00:00
parent a1524dc93e
commit ace9e8ff8f
2 changed files with 4 additions and 0 deletions

View File

@ -50,6 +50,9 @@ Powerup::~Powerup()
//-----------------------------------------------------------------------------
void Powerup::reset()
{
m_type = POWERUP_NOTHING;
m_number = 0;
int type, number;
RaceManager::getWorld()->getDefaultCollectibles( type, number );
set( (PowerupType)type, number );

View File

@ -96,6 +96,7 @@ void StandardRace::getDefaultCollectibles(int& collectible_type, int& amount)
{
collectible_type = POWERUP_ZIPPER;
amount = race_manager->getNumLaps();
printf("laps : %i\n", race_manager->getNumLaps());
}
else World::getDefaultCollectibles(collectible_type, amount);
}