Allow battle ai profiling with different track
This commit is contained in:
parent
c434cb80f4
commit
d3301ff006
@ -899,13 +899,16 @@ int handleCmdLine()
|
|||||||
}
|
}
|
||||||
if(CommandLine::has("--battle-ai-stats"))
|
if(CommandLine::has("--battle-ai-stats"))
|
||||||
{
|
{
|
||||||
|
std::string track;
|
||||||
|
if (!CommandLine::has("--track", &track))
|
||||||
|
track = "temple";
|
||||||
UserConfigParams::m_arena_ai_stats=true;
|
UserConfigParams::m_arena_ai_stats=true;
|
||||||
race_manager->setMinorMode(RaceManager::MINOR_MODE_3_STRIKES);
|
race_manager->setMinorMode(RaceManager::MINOR_MODE_3_STRIKES);
|
||||||
std::vector<std::string> l;
|
std::vector<std::string> l;
|
||||||
for (int i = 0; i < 8; i++)
|
for (int i = 0; i < 8; i++)
|
||||||
l.push_back("tux");
|
l.push_back("tux");
|
||||||
race_manager->setDefaultAIKartList(l);
|
race_manager->setDefaultAIKartList(l);
|
||||||
race_manager->setTrack("temple");
|
race_manager->setTrack(track);
|
||||||
race_manager->setNumKarts(8);
|
race_manager->setNumKarts(8);
|
||||||
race_manager->setDifficulty(RaceManager::Difficulty(3));
|
race_manager->setDifficulty(RaceManager::Difficulty(3));
|
||||||
UserConfigParams::m_no_start_screen = true;
|
UserConfigParams::m_no_start_screen = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user