Removed warning which was printed when reading stk_config.data.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2475 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2008-11-19 04:09:45 +00:00
parent 847612a561
commit 74885f9fd5

View File

@ -161,9 +161,14 @@ void KartModel::loadWheelInfo(const lisp::Lisp* const lisp,
const lisp::Lisp* const wheel = lisp->getLisp(wheel_name);
if(!wheel)
{
fprintf(stderr, "Missing wheel information '%s' for model '%s'.\n",
// Only print the warning if a model filename is given. Otherwise the
// stk_config file is read (which has no model information).
if(m_model_filename!="")
{
fprintf(stderr, "Missing wheel information '%s' for model '%s'.\n",
wheel_name.c_str(), m_model_filename.c_str());
fprintf(stderr, "This can be ignored, but the wheels will not rotate.\n");
fprintf(stderr, "This can be ignored, but the wheels will not rotate.\n");
}
return;
}
wheel->get("model", m_wheel_filename[index] );