Fixed speed of rubber balls to be really the value specified

in the powerup.xml file.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9316 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-07-21 22:14:55 +00:00
parent c1d65112e7
commit 1928a0b409
2 changed files with 1 additions and 4 deletions

View File

@ -16,7 +16,7 @@
<item name="switch" icon="swap-icon.png" />
<item name="swatter" icon="swatter-icon.png" />
<item name="rubber-ball" icon="rubber_ball-icon.png"
model="rubber_ball.b3d" speed="10.0"
model="rubber_ball.b3d" speed="30.0"
interval="1" max-height="4.0" />
<item name="parachute" icon="parachute-icon.png"
model="parachute.b3d" />

View File

@ -31,9 +31,6 @@ RubberBall::RubberBall(Kart *kart) : Flyable(kart, PowerupManager::POWERUP_RUBBE
float forw_offset = 0.5f*kart->getKartLength() + m_extend.getZ()*0.5f+5.0f;
float min_speed = m_speed*4.0f;
m_speed = kart->getSpeed() + m_speed;
if(m_speed < min_speed) m_speed = min_speed;
createPhysics(forw_offset, btVector3(0.0f, 0.0f, m_speed*2),
new btSphereShape(0.5f*m_extend.getY()),