Issue 565: This fixes the issue with the MENU not popping up ingame. The bug was caused when user canceled out of a deck selection screen to either go back to the Player Deck Selection or Main Menu. The buffer was not cleared properly. added call to reset buffer in GameStateDuel to follow pattern used in GameStateDeckViewer.
This commit is contained in:
@@ -186,6 +186,8 @@ void GameStateDuel::Start()
|
||||
}
|
||||
deckmenu->Add(MENUITEM_CANCEL, "Main Menu", "Return to Main Menu");
|
||||
}
|
||||
|
||||
mEngine->ResetInput();
|
||||
}
|
||||
|
||||
void GameStateDuel::initRand(unsigned int seed)
|
||||
@@ -710,7 +712,8 @@ void GameStateDuel::Render()
|
||||
mFont->SetColor(ARGB(255,255,255,255));
|
||||
mFont->DrawString(buffer, SCREEN_WIDTH / 2, 0, JGETEXT_CENTER);
|
||||
}
|
||||
if (menu) menu->Render();
|
||||
if (menu)
|
||||
menu->Render();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user