diff --git a/data/gui/dialogs/ghost_replay_info_dialog.stkgui b/data/gui/dialogs/ghost_replay_info_dialog.stkgui index f6f71c1ccd9..b899795b7f0 100644 --- a/data/gui/dialogs/ghost_replay_info_dialog.stkgui +++ b/data/gui/dialogs/ghost_replay_info_dialog.stkgui @@ -36,7 +36,7 @@ - +
- + diff --git a/data/replay/benchmark_black_forest.replay b/data/replay/benchmark_black_forest.replay index b3c9720f7b2..b6084303516 100644 --- a/data/replay/benchmark_black_forest.replay +++ b/data/replay/benchmark_black_forest.replay @@ -7,6 +7,7 @@ reverse: 0 difficulty: 3 mode: time-trial track: black_forest +info: Sped up 2x for benchmarking purpose. laps: 1 min_time: 73.286743 replay_uid: 564944495606616311 diff --git a/src/replay/replay_play.cpp b/src/replay/replay_play.cpp index 9dbda4256e0..b03d1f916eb 100644 --- a/src/replay/replay_play.cpp +++ b/src/replay/replay_play.cpp @@ -290,7 +290,10 @@ bool ReplayPlay::addReplayFile(const std::string& fn, bool custom_replay, int ca if (s[last - 1] == '\n') s[last - 1] = '\0'; - rd.m_info = s + 6; + rd.m_info = s + 6; + if (rd.m_info.empty()) + rd.m_info = L" "; + fgets(s, 1023, fd); } if (sscanf(s, "laps: %u", &rd.m_laps) != 1) @@ -368,7 +371,7 @@ void ReplayPlay::loadFile(bool second_replay) ReplayData &rd = m_replay_file_list[replay_index]; unsigned int num_kart = (unsigned int)m_replay_file_list.at(replay_index) .m_kart_list.size(); - unsigned int lines_to_skip = (rd.m_replay_version == 3) ? 7 : 10; + unsigned int lines_to_skip = (rd.m_replay_version == 3) ? 7 : 10 + !rd.m_info.empty(); lines_to_skip += (rd.m_replay_version == 3) ? num_kart : 2*num_kart; for (unsigned int i = 0; i < lines_to_skip; i++)