Apply patch by Wardje to hide the reverse checkbox for battle mode, thanks

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10990 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2012-03-17 20:31:55 +00:00
parent 40efd3fbfc
commit f08f3b76fd
2 changed files with 4 additions and 0 deletions

View File

@ -112,6 +112,7 @@ TrackInfoDialog::TrackInfoDialog(const std::string& ribbonItem, const std::strin
}
else
{
getWidget<SpinnerWidget>("lapcountspinner")->setVisible(false);
m_spinner = NULL;
}

View File

@ -302,6 +302,9 @@ void Track::loadTrackInfo()
root->get("groups", &m_groups);
root->get("internal", &m_internal);
root->get("reverse", &m_reverse_available);
// Reverse is meaningless in arena
m_reverse_available = !m_is_arena && m_reverse_available;
for(unsigned int i=0; i<root->getNumNodes(); i++)
{