Quick fix to make --list-tracks and --list-karts available again. Note that I removed the feature to list only unlocked ones, since we now support many game slots, so it's not clear who's game slot's unlocked things we should show
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11239 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
14
src/main.cpp
14
src/main.cpp
@@ -854,12 +854,13 @@ int handleCmdLine(int argc, char **argv)
|
||||
for (size_t i = 0; i != track_manager->getNumberOfTracks(); i++)
|
||||
{
|
||||
const Track *track = track_manager->getTrack(i);
|
||||
if (!unlock_manager->getCurrentSlot()->isLocked(track->getIdent()))
|
||||
{
|
||||
// FIXME: crashes
|
||||
//if (!unlock_manager->getCurrentSlot()->isLocked(track->getIdent()))
|
||||
//{
|
||||
fprintf ( stdout, "\t%14s: %ls\n",
|
||||
track->getIdent().c_str(),
|
||||
track->getName());
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
fprintf ( stdout, "Use --track N to choose track.\n\n");
|
||||
@@ -872,11 +873,12 @@ int handleCmdLine(int argc, char **argv)
|
||||
{
|
||||
const KartProperties* KP =
|
||||
kart_properties_manager->getKartById(i);
|
||||
if (!unlock_manager->getCurrentSlot()->isLocked(KP->getIdent()))
|
||||
{
|
||||
// FIXME: crashes
|
||||
//if (!unlock_manager->getCurrentSlot()->isLocked(KP->getIdent()))
|
||||
//{
|
||||
fprintf (stdout, "\t%10s: %ls\n", KP->getIdent().c_str(),
|
||||
KP->getName());
|
||||
}
|
||||
//}
|
||||
}
|
||||
fprintf ( stdout, "\n" );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user