/** \brief Higher-level method to start a GP without having to care about * the exact startup sequence */ void RaceManager::startGP(const GrandPrixData &gp, bool from_overworld, bool continue_saved_gp) { StateManager::get()->enterGameState(); setGrandPrix(gp); race_manager->setupPlayerKartInfo(); m_continue_saved_gp = continue_saved_gp; setMajorMode(RaceManager::MAJOR_MODE_GRAND_PRIX); startNew(from_overworld); }
void RaceManager::startGP(const GrandPrixData* gp, bool from_overworld, bool continue_saved_gp) { assert(gp != NULL); StateManager::get()->enterGameState(); setGrandPrix(*gp); setCoinTarget( 0 ); // Might still be set from a previous challenge race_manager->setupPlayerKartInfo(); m_continue_saved_gp = continue_saved_gp; setMajorMode(RaceManager::MAJOR_MODE_GRAND_PRIX); startNew(from_overworld); }