Silence a few bogus warnings printed on the terminal

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11424 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2012-07-22 20:17:14 +00:00
parent 65d897915a
commit 341297d951
2 changed files with 3 additions and 5 deletions

View File

@@ -38,13 +38,11 @@ AnimationBase::AnimationBase(const XMLNode &node)
}
m_playing = true;
m_anim_type = ATT_CYCLIC;
#ifdef DEBUG
if(m_all_ipos.size()==0)
if (m_all_ipos.size() == 0) // this will happen for some separate but non-animated objects
{
printf("Warning: empty animation curve.\n");
m_playing = false;
}
#endif
} // AnimationBase
// ----------------------------------------------------------------------------

View File

@@ -1546,7 +1546,7 @@ void Track::loadTrackModel(World* parent, bool reverse_track,
// Only print warning if not in battle mode, since battle tracks don't have
// any quads or check lines.
if(CheckManager::get()->getCheckStructureCount()==0 &&
race_manager->getMinorMode()!=RaceManager::MINOR_MODE_3_STRIKES)
race_manager->getMinorMode()!=RaceManager::MINOR_MODE_3_STRIKES && !m_is_cutscene)
{
printf("WARNING: no check lines found in track '%s'.\n",
m_ident.c_str());