minor cleanup
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5277 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
52b72efedd
commit
d672580336
@ -27,6 +27,8 @@
|
||||
using namespace GUIEngine;
|
||||
|
||||
|
||||
const char* RACE_STATE_NAME = "race";
|
||||
|
||||
AbstractStateManager::AbstractStateManager()
|
||||
{
|
||||
m_game_mode = MENU;
|
||||
@ -43,7 +45,7 @@ void AbstractStateManager::enterGameState()
|
||||
{
|
||||
if (getCurrentScreen() != NULL) getCurrentScreen()->tearDown();
|
||||
m_menu_stack.clear();
|
||||
m_menu_stack.push_back("race");
|
||||
m_menu_stack.push_back(RACE_STATE_NAME);
|
||||
setGameState(GAME);
|
||||
GUIEngine::cleanForGame();
|
||||
|
||||
@ -161,7 +163,7 @@ void AbstractStateManager::popMenu()
|
||||
|
||||
std::cout << "-- switching to screen " << m_menu_stack[m_menu_stack.size()-1].c_str() << std::endl;
|
||||
|
||||
if (m_menu_stack[m_menu_stack.size()-1] == "race")
|
||||
if (m_menu_stack[m_menu_stack.size()-1] == RACE_STATE_NAME)
|
||||
{
|
||||
setGameState(GAME);
|
||||
GUIEngine::cleanForGame();
|
||||
|
Loading…
Reference in New Issue
Block a user