diff --git a/src/karts/kart_properties_manager.cpp b/src/karts/kart_properties_manager.cpp index 1776fee27..3da794bae 100644 --- a/src/karts/kart_properties_manager.cpp +++ b/src/karts/kart_properties_manager.cpp @@ -99,12 +99,12 @@ void KartPropertiesManager::reLoadAllKarts() m_groups.clear(); m_all_groups.clear(); //m_kart_search_path.clear(); - loadAllKarts(); + loadAllKarts(false); } //----------------------------------------------------------------------------- /** Loads all kart properties and models. */ -void KartPropertiesManager::loadAllKarts() +void KartPropertiesManager::loadAllKarts(bool loading_icon) { m_all_kart_dirs.clear(); for(std::vector::const_iterator dir=m_kart_search_path.begin(); @@ -123,7 +123,7 @@ void KartPropertiesManager::loadAllKarts() { const bool loaded = loadKart(*dir+"/"+*subdir); - if (loaded) + if (loaded && loading_icon) { GUIEngine::addLoadingIcon(irr_driver->getTexture( *dir + "/"+*subdir + "/" + diff --git a/src/karts/kart_properties_manager.hpp b/src/karts/kart_properties_manager.hpp index dea991b1b..9abfc50ed 100644 --- a/src/karts/kart_properties_manager.hpp +++ b/src/karts/kart_properties_manager.hpp @@ -66,7 +66,7 @@ public: const int getKartId (const std::string &ident) const; int getKartByGroup (const std::string& group, int i) const; - void loadAllKarts (); + void loadAllKarts (bool loading_icon = true); void unloadAllKarts (); void reLoadAllKarts ();