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:
parent
a1524dc93e
commit
ace9e8ff8f
@ -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 );
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user