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:
parent
847612a561
commit
74885f9fd5
@ -159,11 +159,16 @@ void KartModel::loadWheelInfo(const lisp::Lisp* const lisp,
|
||||
const std::string &wheel_name, int index)
|
||||
{
|
||||
const lisp::Lisp* const wheel = lisp->getLisp(wheel_name);
|
||||
if(!wheel)
|
||||
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] );
|
||||
|
Loading…
x
Reference in New Issue
Block a user