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:
techdragon.nguyen@gmail.com
2012-01-03 14:05:43 +00:00
parent 4674f34246
commit 6adffc12f0
3 changed files with 16 additions and 3 deletions

View File

@@ -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();
}
}