Make it easier to launch cutscenes, see #2482
This commit is contained in:
parent
d989ae1d4a
commit
8496352133
15
src/main.cpp
15
src/main.cpp
@ -171,6 +171,7 @@
|
||||
#include "karts/controller/ai_base_lap_controller.hpp"
|
||||
#include "karts/kart_properties.hpp"
|
||||
#include "karts/kart_properties_manager.hpp"
|
||||
#include "modes/cutscene_world.hpp"
|
||||
#include "modes/demo_world.hpp"
|
||||
#include "modes/profile_world.hpp"
|
||||
#include "network/network_config.hpp"
|
||||
@ -474,7 +475,8 @@ void setupRaceStart()
|
||||
else
|
||||
{
|
||||
// Set up race manager appropriately
|
||||
race_manager->setPlayerKart(0, UserConfigParams::m_default_kart);
|
||||
if (race_manager->getNumPlayers() > 0)
|
||||
race_manager->setPlayerKart(0, UserConfigParams::m_default_kart);
|
||||
}
|
||||
|
||||
// ASSIGN should make sure that only input from assigned devices
|
||||
@ -932,6 +934,17 @@ int handleCmdLine()
|
||||
}
|
||||
} // --track
|
||||
|
||||
// used only for debugging/testing
|
||||
if (CommandLine::has("--cutscene", &s))
|
||||
{
|
||||
race_manager->setTrack(s);
|
||||
StateManager::get()->enterGameState();
|
||||
race_manager->setMinorMode(RaceManager::MINOR_MODE_CUTSCENE);
|
||||
race_manager->setNumKarts(0);
|
||||
race_manager->setNumPlayers(0);
|
||||
race_manager->setNumLaps(999);
|
||||
} // --cutscene
|
||||
|
||||
if(CommandLine::has("--gp", &s))
|
||||
{
|
||||
race_manager->setMajorMode(RaceManager::MAJOR_MODE_GRAND_PRIX);
|
||||
|
Loading…
Reference in New Issue
Block a user