Add missed number of laps setting

This commit is contained in:
Benau 2016-03-20 08:54:12 +08:00
parent b92210d4a0
commit 4d42010f2a

View File

@ -951,6 +951,7 @@ void RaceManager::startWatchingReplay(const std::string &track_ident,
assert(m_watching_replay && m_has_ghost_karts && !m_will_record_race);
StateManager::get()->enterGameState();
setTrack(track_ident);
setNumLaps(num_laps);
setMajorMode(RaceManager::MAJOR_MODE_SINGLE);
setCoinTarget(0);
m_num_karts = ReplayPlay::get()->getNumGhostKart();