[Fix] Clearing buffers when entering MainMenu as apposed to InGameMenu.

This commit is contained in:
Rtch90 2012-01-16 16:05:53 +00:00
parent ca3eb4ece7
commit 4e338bb799

View File

@ -174,6 +174,7 @@ void Game::HandleInput(void) {
case ingameMenuOptions:
break;
case ingameMenuMainMenu:
SDL_FillRect(screen, NULL, 0);
_gameRunning = false;
break;
}
@ -196,7 +197,7 @@ void Game::UpdateGame(void) {
}
void Game::Render(void) {
SDL_FillRect(screen, NULL, 0); // You might want to clear the buffer! --konom
//SDL_FillRect(screen, NULL, 0); // You might want to clear the buffer! --konom | I don't want a blacked out ingame menu, save it for MainMenu. --Allanis
if(_ingameMenu.GetStatus() == false) {
_map.Render();
_player->Render();