From 74885f9fd59639de2d199bffbfad2d2d458fc4cd Mon Sep 17 00:00:00 2001 From: hikerstk Date: Wed, 19 Nov 2008 04:09:45 +0000 Subject: [PATCH] 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 --- src/karts/kart_model.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/karts/kart_model.cpp b/src/karts/kart_model.cpp index 0da47319b..2ea84565b 100755 --- a/src/karts/kart_model.cpp +++ b/src/karts/kart_model.cpp @@ -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] );