Fix back button in login screen and fix 'move on uninitialised value in MusicInformation'
This commit is contained in:
parent
a2e202a695
commit
fc5da9eb9a
@ -81,6 +81,7 @@ MusicInformation::MusicInformation(const XMLNode *root,
|
|||||||
m_normal_music = NULL;
|
m_normal_music = NULL;
|
||||||
m_fast_music = NULL;
|
m_fast_music = NULL;
|
||||||
m_enable_fast = false;
|
m_enable_fast = false;
|
||||||
|
m_music_waiting = false;
|
||||||
m_faster_time = 1.0f;
|
m_faster_time = 1.0f;
|
||||||
m_max_pitch = 0.1f;
|
m_max_pitch = 0.1f;
|
||||||
m_gain = 1.0f;
|
m_gain = 1.0f;
|
||||||
|
@ -179,6 +179,10 @@ void LoginScreen::eventCallback(Widget* widget, const std::string& name,
|
|||||||
else if(button=="cancel")
|
else if(button=="cancel")
|
||||||
StateManager::get()->escapePressed();
|
StateManager::get()->escapePressed();
|
||||||
}
|
}
|
||||||
|
else if (name == "back")
|
||||||
|
{
|
||||||
|
StateManager::get()->escapePressed();
|
||||||
|
}
|
||||||
|
|
||||||
} // eventCallback
|
} // eventCallback
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user