Removed warning about "... element 'default-start' was met but is

unknown.".


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6303 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-10-18 03:10:18 +00:00
parent 6fde6b3145
commit 6d3d6d69d0

View File

@ -755,8 +755,9 @@ void Track::loadTrackModel(World* parent, unsigned int mode_id)
{
const XMLNode *node = root->getNode(i);
const std::string name = node->getName();
// The track object was already converted before the loop
if(name=="track") continue;
// The track object was already converted before the loop, and the
// default start was already used, too - so ignore those.
if(name=="track" || name=="default-start") continue;
if(name=="object")
{
m_track_object_manager->add(*node, *this);