Final fix for #528 (see also r10404): don't test

for locked karts when using --ai.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10405 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-12-12 03:49:33 +00:00
parent ed432fbdf4
commit f33cdb2d17

View File

@ -101,12 +101,15 @@ void RaceManager::setDefaultAIKartList(const std::vector<std::string>& ai_list)
name.c_str());
continue;
}
if(unlock_manager->getCurrentSlot()->isLocked(name))
{
printf("Kart '%s' is locked and therefore ignored.\n",
name.c_str());
continue;
}
// This doesn't work anymore, since this is called when
// handling the command line options, at which time the
// player (and therefore the current slot) is not defined yet.
//if(unlock_manager->getCurrentSlot()->isLocked(name))
//{
// printf("Kart '%s' is locked and therefore ignored.\n",
// name.c_str());
// continue;
//}
m_default_ai_list.push_back(name);
}
} // setAIKartList