Committed Paul Elms' fix for the start race feedback screen not showing.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1944 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
422931342d
commit
1d496169e7
@ -28,7 +28,7 @@ enum WidgetTokens
|
|||||||
WTOK_MSG
|
WTOK_MSG
|
||||||
};
|
};
|
||||||
|
|
||||||
StartRaceFeedback::StartRaceFeedback()
|
StartRaceFeedback::StartRaceFeedback() : m_updated( false )
|
||||||
{
|
{
|
||||||
//Add some feedback so people know they are going to start the race
|
//Add some feedback so people know they are going to start the race
|
||||||
widget_manager->reset();
|
widget_manager->reset();
|
||||||
@ -50,8 +50,7 @@ void StartRaceFeedback::update(float DELTA)
|
|||||||
|
|
||||||
//I consider that in this case, a static variable is cleaner than a
|
//I consider that in this case, a static variable is cleaner than a
|
||||||
//member variable of this class. -Coz
|
//member variable of this class. -Coz
|
||||||
static bool updated = false;
|
if( m_updated == true ) race_manager->startNew();
|
||||||
if( updated == true ) race_manager->startNew();
|
else m_updated = true;
|
||||||
else updated = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
|
|
||||||
class StartRaceFeedback: public BaseGUI
|
class StartRaceFeedback: public BaseGUI
|
||||||
{
|
{
|
||||||
|
bool m_updated;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
StartRaceFeedback();
|
StartRaceFeedback();
|
||||||
~StartRaceFeedback();
|
~StartRaceFeedback();
|
||||||
|
Loading…
Reference in New Issue
Block a user