Fixed various compilation problems.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6945 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2010-12-10 05:54:04 +00:00
parent 1eacc8fe59
commit be7e8793b6
3 changed files with 6 additions and 3 deletions

View File

@@ -277,6 +277,9 @@ namespace UserConfigParams
/** True if slipstream debugging is activated. */
PARAM_PREFIX bool m_slipstream_debug PARAM_DEFAULT( false );
/** True if currently developed tutorial debugging is enabled. */
PARAM_PREFIX bool m_tutorial_debug PARAM_DEFAULT( false );
/** Verbosity level for debug messages. Note that error and important warnings
* must always be printed. */
PARAM_PREFIX int m_verbosity PARAM_DEFAULT( 0 );

View File

@@ -249,9 +249,9 @@ int handleCmdLine(int argc, char **argv)
{
UserConfigParams::m_gamepad_debug=true;
}
else if (sscanf(argv[i], "--tutorial-debug=%d",&n)==1) // ASV TBC
else if (!strcmp(argv[i], "--tutorial-debug"))
{
UserConfigParams::m_tutorial_debug=n;
UserConfigParams::m_tutorial_debug = true;
}
else if(sscanf(argv[i], "--track-debug=%d",&n)==1)
{

View File

@@ -228,7 +228,7 @@ void MainMenuScreen::eventCallback(Widget* widget, const std::string& name, cons
}
else if (selection == "tutorial")
{
StateManager::get()->pushScreen(TutorialScreen::getInstance());
//FIXME missing atm! StateManager::get()->pushScreen(TutorialScreen::getInstance());
}
#ifdef ADDONS_MANAGER
else if (selection == "addons")