Added test in case that the inverval is not set on rubber ball.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9318 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-07-21 23:04:09 +00:00
parent 46e7ecb829
commit 8c30a00405

View File

@ -105,7 +105,8 @@ void RubberBall::computeTarget()
void RubberBall::init(const XMLNode &node, scene::IMesh *bowling)
{
m_st_interval = 1.0f;
node.get("interval", &m_st_interval);
if(!node.get("interval", &m_st_interval))
printf("[powerup] Warning: no interval specific for rubber ball.\n");
Flyable::init(node, bowling, PowerupManager::POWERUP_RUBBERBALL);
} // init