[Fix] Clearing buffers when entering MainMenu as apposed to InGameMenu.
This commit is contained in:
parent
ca3eb4ece7
commit
4e338bb799
@ -174,6 +174,7 @@ void Game::HandleInput(void) {
|
|||||||
case ingameMenuOptions:
|
case ingameMenuOptions:
|
||||||
break;
|
break;
|
||||||
case ingameMenuMainMenu:
|
case ingameMenuMainMenu:
|
||||||
|
SDL_FillRect(screen, NULL, 0);
|
||||||
_gameRunning = false;
|
_gameRunning = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -196,7 +197,7 @@ void Game::UpdateGame(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Game::Render(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) {
|
if(_ingameMenu.GetStatus() == false) {
|
||||||
_map.Render();
|
_map.Render();
|
||||||
_player->Render();
|
_player->Render();
|
||||||
|
Loading…
Reference in New Issue
Block a user