1) Set reverse state to false if no reverse track is available

(otherwise after racing one track in reverse mode, the next track
   without reverse available will still have reverse flag set).
2) Set the state of the checkbox to the previsouly selected
   reverse status (which makes it a bit more convenient if you
   want to replay with the same settings).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10818 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2012-02-07 03:08:43 +00:00
parent 59c5537fe5
commit f2d5ca5203

View File

@@ -161,7 +161,7 @@ TrackInfoDialog::TrackInfoDialog(const std::string& ribbonItem, const std::strin
//~ m_checkbox->setText( _("Reverse track") );
m_widgets.push_back(m_checkbox);
m_checkbox->add();
m_checkbox->setState(false);
m_checkbox->setState(race_manager->getReverseTrack());
m_checkbox->getIrrlichtElement()->setTabStop(true);
m_checkbox->getIrrlichtElement()->setTabGroup(false);
stringw text_reverse = _("Reverse");
@@ -178,6 +178,7 @@ TrackInfoDialog::TrackInfoDialog(const std::string& ribbonItem, const std::strin
else
{
m_checkbox = NULL;
race_manager->setReverseTrack(false);
}
// ---- Start button