Browse Source

remove missing default case warning

master
sauer2 2 years ago
parent
commit
86e0381725
1 changed files with 11 additions and 3 deletions
  1. 11
    3
      main.cpp

+ 11
- 3
main.cpp View File

@@ -84,8 +84,10 @@ namespace Proto4 {
menu.resize(event);
break;

/* TODO: add a resize method to the game object, similar to
* the one in mainmenu */
/* TODO: add a resize method to the game object, similar to
* the one in mainmenu */
default:
break;
}

break;
@@ -94,9 +96,13 @@ namespace Proto4 {
case AppState::MainMenu:
state = menu.update(window, timestep, event);
break;
/* TODO: add keyboard input queue for game */
/* TODO: add keyboard input queue for game */
default:
break;
}
break;
default:
break;
}
}

@@ -119,6 +125,8 @@ namespace Proto4 {
case AppState::Exit:
window.close();
break;
default:
break;
}
}


Loading…
Cancel
Save