From d3301ff006c0d3b89bdacc46f2a4290ff1a208ce Mon Sep 17 00:00:00 2001 From: Benau Date: Sat, 1 Oct 2016 12:35:57 +0800 Subject: [PATCH] Allow battle ai profiling with different track --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 4146bb6ae..d74e5d254 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -899,13 +899,16 @@ int handleCmdLine() } if(CommandLine::has("--battle-ai-stats")) { + std::string track; + if (!CommandLine::has("--track", &track)) + track = "temple"; UserConfigParams::m_arena_ai_stats=true; race_manager->setMinorMode(RaceManager::MINOR_MODE_3_STRIKES); std::vector l; for (int i = 0; i < 8; i++) l.push_back("tux"); race_manager->setDefaultAIKartList(l); - race_manager->setTrack("temple"); + race_manager->setTrack(track); race_manager->setNumKarts(8); race_manager->setDifficulty(RaceManager::Difficulty(3)); UserConfigParams::m_no_start_screen = true;