Allow making races of 0 laps in artist debug mode

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8976 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-06-19 19:55:51 +00:00
parent d5cf527232
commit 429267f44a

View File

@ -121,7 +121,14 @@ TrackInfoDialog::TrackInfoDialog(const std::string& ribbonItem, const std::strin
m_spinner->setParent(m_irrlicht_window);
m_spinner->m_properties[PROP_ID] = "lapcountspinner";
m_spinner->m_properties[PROP_MIN_VALUE] = "1";
if (UserConfigParams::m_artist_debug_mode)
{
m_spinner->m_properties[PROP_MIN_VALUE] = "0";
}
else
{
m_spinner->m_properties[PROP_MIN_VALUE] = "1";
}
m_spinner->m_properties[PROP_MAX_VALUE] = "99";
m_spinner->m_properties[PROP_WARP_AROUND] = "true";