Detach attachment anvil now works correctly
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1209 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
67a4c5a4a1
commit
f0288dd697
@ -145,13 +145,14 @@ void Attachment::update(float dt, sgCoord *velocity)
|
||||
// Detach attachment if its time is up.
|
||||
if ( m_time_left <= 0.0f)
|
||||
{
|
||||
clear();
|
||||
if(m_type==ATTACH_ANVIL)
|
||||
{
|
||||
// Resets the weight, and multiplies the velocity by 1.0,
|
||||
// i.e. no change of velocity.
|
||||
m_kart->getAttachment()->clear();
|
||||
m_kart->adjustSpeedWeight(1.0f);
|
||||
}
|
||||
clear();
|
||||
} // if m_time_left<0
|
||||
} // update
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user