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:
parent
60840e5851
commit
901f8ae7d4
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user