Removed unnecessary and confusing code: an eliminated never calls
update() ... but if it would, it would potentially call a kart_animation that is NULL. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11582 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -965,12 +965,6 @@ void Kart::update(float dt)
|
||||
m_stars_effect->update(dt);
|
||||
}
|
||||
|
||||
if (isEliminated())
|
||||
{
|
||||
m_kart_animation->update(dt);
|
||||
return;
|
||||
}
|
||||
|
||||
if(m_squash_time>0)
|
||||
{
|
||||
m_squash_time-=dt;
|
||||
|
||||
Reference in New Issue
Block a user