Fix back button in login screen and fix 'move on uninitialised value in MusicInformation'

This commit is contained in:
Daniel Butum 2014-04-26 13:33:09 +03:00
parent a2e202a695
commit fc5da9eb9a
2 changed files with 5 additions and 0 deletions

View File

@ -81,6 +81,7 @@ MusicInformation::MusicInformation(const XMLNode *root,
m_normal_music = NULL;
m_fast_music = NULL;
m_enable_fast = false;
m_music_waiting = false;
m_faster_time = 1.0f;
m_max_pitch = 0.1f;
m_gain = 1.0f;

View File

@ -179,6 +179,10 @@ void LoginScreen::eventCallback(Widget* widget, const std::string& name,
else if(button=="cancel")
StateManager::get()->escapePressed();
}
else if (name == "back")
{
StateManager::get()->escapePressed();
}
} // eventCallback