This commit is contained in:
Alayan-stk-2 2018-08-05 03:17:38 +02:00 committed by auriamg
parent 3b3990a196
commit e711f20edb
2 changed files with 5 additions and 1 deletions

View File

@ -252,6 +252,8 @@ bool ReplayPlay::addReplayFile(const std::string& fn, bool custom_replay, int ca
return false;
}
rd.m_track = t;
fgets(s, 1023, fd);
if (sscanf(s, "laps: %u", &rd.m_laps) != 1)
{

View File

@ -20,6 +20,7 @@
#define HEADER_REPLAY__PLAY_HPP
#include "replay/replay_base.hpp"
#include "tracks/track.hpp"
#include "irrString.h"
#include <algorithm>
@ -57,6 +58,7 @@ public:
public:
std::string m_filename;
std::string m_track_name;
Track* m_track;
std::string m_minor_mode;
core::stringw m_stk_version;
core::stringw m_user_name;
@ -76,7 +78,7 @@ public:
switch (m_sort_order)
{
case SO_TRACK:
return m_track_name < r.m_track_name;
return m_track->getSortName() < r.m_track->getSortName();
break;
case SO_KART_NUM:
return m_kart_list.size() < r.m_kart_list.size();