Revert "Fix #3697", since this was not included in any
of the binaries built. It is already on master.
This reverts commit eecfc5d797
.
This commit is contained in:
parent
eecfc5d797
commit
5cf79f66fe
@ -550,6 +550,7 @@ void Track::loadTrackInfo()
|
||||
root->get("version", &m_version);
|
||||
std::vector<std::string> filenames;
|
||||
root->get("music", &filenames);
|
||||
getMusicInformation(filenames, m_music);
|
||||
root->get("screenshot", &m_screenshot);
|
||||
root->get("gravity", &m_gravity);
|
||||
root->get("friction", &m_friction);
|
||||
@ -572,7 +573,6 @@ void Track::loadTrackInfo()
|
||||
root->get("color-level-in", &m_color_inlevel);
|
||||
root->get("color-level-out", &m_color_outlevel);
|
||||
|
||||
getMusicInformation(filenames, m_music);
|
||||
if (m_default_number_of_laps <= 0)
|
||||
m_default_number_of_laps = 3;
|
||||
m_actual_number_of_laps = m_default_number_of_laps;
|
||||
@ -702,7 +702,7 @@ void Track::getMusicInformation(std::vector<std::string>& filenames,
|
||||
|
||||
} // for i in filenames
|
||||
|
||||
if (m_music.empty() && !isInternal() && !m_is_cutscene)
|
||||
if (m_music.empty())
|
||||
{
|
||||
m_music.push_back(stk_config->m_default_music);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user