Disable 'restart race' during GPs

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4785 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-02-21 02:35:21 +00:00
parent a148a2f46b
commit eec4a21cbe

View File

@ -88,7 +88,8 @@ RacePausedDialog::RacePausedDialog(const float percentWidth, const float percent
m_choice_ribbon->h = icon_size + text_height;
m_choice_ribbon->setParent(m_irrlicht_window);
if (race_manager->getMinorMode()==RaceManager::MINOR_MODE_NORMAL_RACE)
if (race_manager->getMinorMode() == RaceManager::MINOR_MODE_NORMAL_RACE &&
race_manager->getMajorMode() == RaceManager::MAJOR_MODE_SINGLE)
{
IconButtonWidget* ribbon_item = new IconButtonWidget();
ribbon_item->m_properties[PROP_ID] = "newrace";
@ -99,6 +100,8 @@ RacePausedDialog::RacePausedDialog(const float percentWidth, const float percent
ribbon_item->m_text = _("Setup New Race");
m_choice_ribbon->m_children.push_back(ribbon_item);
}
if (race_manager->getMajorMode() == RaceManager::MAJOR_MODE_SINGLE)
{
IconButtonWidget* ribbon_item = new IconButtonWidget();
ribbon_item->m_properties[PROP_ID] = "restart";