diff --git a/data/gui/main.stkgui b/data/gui/main.stkgui
index babf37731..67479aed0 100644
--- a/data/gui/main.stkgui
+++ b/data/gui/main.stkgui
@@ -13,7 +13,7 @@
I18N="Main menu button" text="Story Mode"/>
+ I18N="Main menu button" text="Singleplayer"/>
diff --git a/data/gui/options_ui.stkgui b/data/gui/options_ui.stkgui
index 859abd40d..479d369d1 100644
--- a/data/gui/options_ui.stkgui
+++ b/data/gui/options_ui.stkgui
@@ -37,9 +37,9 @@
-
+
-
+
@@ -47,17 +47,18 @@
@@ -72,12 +73,7 @@
-
-
-
-
-
+
diff --git a/src/config/user_config.hpp b/src/config/user_config.hpp
index ea212491a..3867b6479 100644
--- a/src/config/user_config.hpp
+++ b/src/config/user_config.hpp
@@ -681,11 +681,6 @@ namespace UserConfigParams
&m_handicap,
"If handicapped users can be selected") );
- PARAM_PREFIX BoolUserConfigParam m_ai_handicap
- PARAM_DEFAULT( BoolUserConfigParam(false, "ai_handicap",
- &m_handicap,
- "If AIs are handicapped") );
-
// ---- Internet related
PARAM_PREFIX IntUserConfigParam m_internet_status
diff --git a/src/guiengine/widgets/player_kart_widget.cpp b/src/guiengine/widgets/player_kart_widget.cpp
index 318da902c..ae1a6f866 100644
--- a/src/guiengine/widgets/player_kart_widget.cpp
+++ b/src/guiengine/widgets/player_kart_widget.cpp
@@ -351,10 +351,15 @@ void PlayerKartWidget::add()
for (int n=0; ngetPlayer(n)->getName();
- m_player_ident_spinner->addLabel(translations->fribidize(name));
+ core::stringw label = translations->fribidize(name);
+ m_player_ident_spinner->addLabel(label);
if (UserConfigParams::m_per_player_difficulty)
+ {
// The second player is the same, but with handicap
- m_player_ident_spinner->addLabel(translations->fribidize(name));
+ label += L" ";
+ label += _(L"(handicapped)");
+ m_player_ident_spinner->addLabel(label);
+ }
}
// select the right player profile in the spinner
@@ -366,9 +371,6 @@ void PlayerKartWidget::add()
m_player_ident_spinner->setVisible(false);
}
- // Add anchor badge if the player is handicapped
- int spinner_value = m_player_ident_spinner->getValue();
-
assert(m_player_ident_spinner->getStringValue() == name);
} // add
@@ -630,7 +632,11 @@ void PlayerKartWidget::setSize(const int x, const int y, const int w, const int
// -- sizes
player_name_h = 40;
- player_name_w = std::min(400, w);
+ // Set it a bit higher so there's space for "(handicapped)"
+ if(UserConfigParams::m_per_player_difficulty)
+ player_name_w = std::min(500, w);
+ else
+ player_name_w = std::min(400, w);
kart_name_w = w;
kart_name_h = 25;
diff --git a/src/race/race_manager.cpp b/src/race/race_manager.cpp
index d6c12de4f..27f90a064 100644
--- a/src/race/race_manager.cpp
+++ b/src/race/race_manager.cpp
@@ -349,8 +349,7 @@ void RaceManager::startNew(bool from_overworld)
for(unsigned int i = 0; i < ai_kart_count; i++)
{
m_kart_status.push_back(KartStatus(m_ai_kart_list[i], i, -1, -1,
- init_gp_rank, KT_AI, UserConfigParams::m_ai_handicap ?
- PLAYER_DIFFICULTY_HANDICAP : PLAYER_DIFFICULTY_NORMAL));
+ init_gp_rank, KT_AI, PLAYER_DIFFICULTY_NORMAL));
init_gp_rank ++;
if(UserConfigParams::m_ftl_debug)
{
diff --git a/src/states_screens/options_screen_ui.cpp b/src/states_screens/options_screen_ui.cpp
index d5e2de020..7532b06b7 100644
--- a/src/states_screens/options_screen_ui.cpp
+++ b/src/states_screens/options_screen_ui.cpp
@@ -152,9 +152,6 @@ void OptionsScreenUI::init()
CheckBoxWidget* difficulty = getWidget("perPlayerDifficulty");
assert( difficulty != NULL );
difficulty->setState( UserConfigParams::m_per_player_difficulty );
- CheckBoxWidget* ai_handicap = getWidget("aiHandicap");
- assert( ai_handicap != NULL );
- ai_handicap->setState( UserConfigParams::m_ai_handicap );
CheckBoxWidget* show_login = getWidget("show-login");
assert( show_login!= NULL );
@@ -311,12 +308,6 @@ void OptionsScreenUI::eventCallback(Widget* widget, const std::string& name, con
assert( difficulty != NULL );
UserConfigParams::m_per_player_difficulty = difficulty->getState();
}
- else if (name=="aiHandicap")
- {
- CheckBoxWidget* ai_handicap = getWidget("aiHandicap");
- assert( ai_handicap != NULL );
- UserConfigParams::m_ai_handicap = ai_handicap->getState();
- }
else if (name == "language")
{
ListWidget* list_widget = getWidget("language");