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:
parent
505c623f07
commit
9b622e59c7
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user