diff --git a/src/states_screens/dialogs/race_over_dialog.cpp b/src/states_screens/dialogs/race_over_dialog.cpp index d8ba214a4..45217f472 100644 --- a/src/states_screens/dialogs/race_over_dialog.cpp +++ b/src/states_screens/dialogs/race_over_dialog.cpp @@ -482,25 +482,13 @@ GUIEngine::EventPropagation RaceOverDialog::processEvent(const std::string& even FeatureUnlockedCutScene* scene = FeatureUnlockedCutScene::getInstance(); - - /* - scene->addUnlockedKart( const_cast(kart_properties_manager->getKart("gnu")), - _("Unlocked gnu kart") ); - scene->addUnlockedPicture( - irr_driver->getTexture(track_manager->getTrack("beach")->getScreenshotFile().c_str()), - _("Unlocked beach track")); - scene->addUnlockedPicture( - irr_driver->getTexture(track_manager->getTrack("lighthouse")->getScreenshotFile().c_str()), - _("Unlocked lighthouse track")); - //scene->addUnlockedPicture( irr_driver->getTexture(track_manager->getTrack("canyon")->getScreenshotFile().c_str()) ); - */ assert(unlocked.size() > 0); scene->addUnlockedThings(unlocked); ModalDialog::dismiss(); - // clear the race (FIXME: is this the right way to go?) + // clear the race World::deleteWorld(); StateManager::get()->pushScreen(scene); diff --git a/src/states_screens/main_menu_screen.cpp b/src/states_screens/main_menu_screen.cpp index 09e549408..017fe267f 100644 --- a/src/states_screens/main_menu_screen.cpp +++ b/src/states_screens/main_menu_screen.cpp @@ -36,14 +36,12 @@ #include "states_screens/kart_selection.hpp" #include "states_screens/options_screen_video.hpp" #include "states_screens/state_manager.hpp" - -//FIXME : remove, temporary tutorial test #include "states_screens/tutorial_screen.hpp" -// FIXME : remove, temporary test -#include "states_screens/feature_unlocked.hpp" -#include "states_screens/grand_prix_lose.hpp" -#include "states_screens/grand_prix_win.hpp" +//#include "states_screens/feature_unlocked.hpp" +//#include "states_screens/grand_prix_lose.hpp" +//#include "states_screens/grand_prix_win.hpp" + #include "addons/network_http.hpp" #include "tracks/track_manager.hpp" @@ -269,6 +267,7 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name, cons std::string selection = ribbon->getSelectionIDString(PLAYER_ID_GAME_MASTER); +#if 0 if (selection == "network") { // The DEBUG item @@ -319,7 +318,9 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name, cons scene->setKarts( losers ); } } - else if (selection == "new") + else +#endif + if (selection == "new") { KartSelectionScreen* s = KartSelectionScreen::getInstance(); s->setMultiplayer(false); diff --git a/src/states_screens/options_screen_input.cpp b/src/states_screens/options_screen_input.cpp index a37823cae..2e8c6ce7d 100644 --- a/src/states_screens/options_screen_input.cpp +++ b/src/states_screens/options_screen_input.cpp @@ -90,9 +90,9 @@ void OptionsScreenInput::buildDeviceList() kbname << "keyboard" << i; const std::string internal_name = kbname.str(); - //FIXME: I18N: since irrLicht's list widget has the nasty tendency to put the - // icons very close to the text, I'm adding spaces to compensate... - devices->addItem(internal_name, _(" Keyboard %i", i), 0 /* icon */); + // since irrLicht's list widget has the nasty tendency to put the + // icons very close to the text, I'm adding spaces to compensate. + devices->addItem(internal_name, (core::stringw(" ") + _("Keyboard %i", i)).c_str(), 0 /* icon */); } const int gpad_config_count = input_manager->getDeviceList()->getGamePadConfigAmount(); @@ -104,9 +104,9 @@ void OptionsScreenInput::buildDeviceList() // Don't display the configuration if a matching device is not available if (config->isPlugged()) { - //FIXME: since irrLicht's list widget has the nasty tendency to put the - // icons very close to the text, I'm adding spaces to compensate... - const irr::core::stringw name = irr::core::stringw(" ") + config->getName().c_str(); + // since irrLicht's list widget has the nasty tendency to put the + // icons very close to the text, I'm adding spaces to compensate. + const irr::core::stringw name = (" " + config->getName()).c_str(); std::ostringstream gpname; gpname << "gamepad" << i; diff --git a/src/states_screens/options_screen_players.cpp b/src/states_screens/options_screen_players.cpp index 6834ea094..32f53f8ff 100644 --- a/src/states_screens/options_screen_players.cpp +++ b/src/states_screens/options_screen_players.cpp @@ -75,7 +75,9 @@ void OptionsScreenPlayers::init() const int playerAmount = UserConfigParams::m_all_players.size(); for(int n=0; naddItem( core::stringc(UserConfigParams::m_all_players[n].getName().c_str()).c_str(), UserConfigParams::m_all_players[n].getName() ); }