Bugfix: the rotating stars were being shown when restarting a race.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4443 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-01-12 23:00:10 +00:00
parent 60840e5851
commit 901f8ae7d4
3 changed files with 14 additions and 7 deletions

View File

@ -89,6 +89,13 @@ void Stars::showFor(float time)
update(0);
}
// ----------------------------------------------------------------------------
/** Resets the stars, esp. disabling them at a restart.
*/
void Stars::reset()
{
m_enabled = false;
} // unShow
// ----------------------------------------------------------------------------
void Stars::update(float delta_t)

View File

@ -45,12 +45,11 @@ private:
float m_remaining_time;
public:
Stars (scene::IAnimatedMeshSceneNode* parentKart);
~Stars ();
//void show ();
void showFor (float time);
//void hide ();
void update (float delta_t);
Stars (scene::IAnimatedMeshSceneNode* parentKart);
~Stars ();
void showFor(float time);
void reset();
void update (float delta_t);
};
#endif

View File

@ -380,7 +380,8 @@ void Kart::reset()
m_controls.m_drift = false;
m_controls.m_fire = false;
m_controls.m_look_back = false;
// Reset star effect in case that it is currently being shown.
m_stars_effect->reset();
m_vehicle->deactivateZipper();
// Set the brakes so that karts don't slide downhill