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:
parent
46e7ecb829
commit
8c30a00405
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user