Fixed --profile behaviour.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2587 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2008-12-09 05:05:48 +00:00
parent 505c623f07
commit 9b622e59c7
2 changed files with 2 additions and 2 deletions

View File

@ -596,14 +596,13 @@ int main(int argc, char *argv[] )
}
else // profile
{
// Profiling
// =========
race_manager->setNumPlayers(1);
race_manager->setLocalKartInfo(0, kart_properties_manager->getKart("tux")->getIdent());
race_manager->setMajorMode (RaceManager::MAJOR_MODE_SINGLE);
race_manager->setMinorMode (RaceManager::MINOR_MODE_QUICK_RACE);
race_manager->setDifficulty(RaceManager::RD_HARD);
network_manager->setupPlayerKartInfo();
race_manager->startNew();
}
main_loop->run();

View File

@ -115,6 +115,7 @@ void World::init()
if(i==race_manager->getNumKarts()-1)
{
scene->createCamera(local_player_id, newkart);
m_local_player_karts[0] = static_cast<PlayerKart*>(newkart);
}
}
else