- /* allow quick escape to the main menu with the Escape key */
- if (key == KSYM_Escape &&
- game_status != GAME_MODE_MAIN &&
- game_status != GAME_MODE_PLAYING &&
- game_status != GAME_MODE_EDITOR &&
- game_status != GAME_MODE_LEVELS &&
- game_status != GAME_MODE_SETUP)
- {
- game_status = GAME_MODE_MAIN;
- DrawMainMenu();
- return;
- }
-