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
|
||||
};
|
||||
|
||||
StartRaceFeedback::StartRaceFeedback()
|
||||
StartRaceFeedback::StartRaceFeedback() : m_updated( false )
|
||||
{
|
||||
//Add some feedback so people know they are going to start the race
|
||||
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
|
||||
//member variable of this class. -Coz
|
||||
static bool updated = false;
|
||||
if( updated == true ) race_manager->startNew();
|
||||
else updated = true;
|
||||
if( m_updated == true ) race_manager->startNew();
|
||||
else m_updated = true;
|
||||
}
|
||||
|
||||
|
@ -22,6 +22,8 @@
|
||||
|
||||
class StartRaceFeedback: public BaseGUI
|
||||
{
|
||||
bool m_updated;
|
||||
|
||||
public:
|
||||
StartRaceFeedback();
|
||||
~StartRaceFeedback();
|
||||
|
Loading…
Reference in New Issue
Block a user