| 806 | #ifdef EDITOR |
| 807 | bool Game_being_played_from_quick_play = false; |
| 808 | void QuickPlayGame() { |
| 809 | if (InitGame()) { |
| 810 | Game_being_played_from_quick_play = true; |
| 811 | QuickStartMission(); |
| 812 | |
| 813 | // Run the game (note, if this call returns false, we couldn't play a level. Display an error maybe? |
| 814 | GameSequencer(); |
| 815 | QuickEndMission(); |
| 816 | } else { |
| 817 | } |
| 818 | Game_being_played_from_quick_play = false; |
| 819 | |
| 820 | // Close down some game stuff |
| 821 | // close down any systems not needed outside game. |
| 822 | CloseGameScript(); |
| 823 | CloseHUD(); |
| 824 | DoorwayDeactivateAll(); // deactivate doorways |
| 825 | ui_RemoveAllWindows(); // remove any ui windows left open. |
| 826 | SuspendControls(); |
| 827 | } |
| 828 | #endif |
| 829 | |
| 830 | void PlayGame() { |
no test coverage detected