diff options
Diffstat (limited to 'src/input_system.cpp')
| -rw-r--r-- | src/input_system.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
| diff --git a/src/input_system.cpp b/src/input_system.cpp index 0c68c49..25af7ed 100644 --- a/src/input_system.cpp +++ b/src/input_system.cpp | |||
| @@ -75,6 +75,10 @@ void InputSystem::tick(double dt) { | |||
| 75 | } | 75 | } |
| 76 | } | 76 | } |
| 77 | } else if (e.key.keysym.sym == SDLK_SPACE) { | 77 | } else if (e.key.keysym.sym == SDLK_SPACE) { |
| 78 | if (game_.getSystem<MenuSystem>().isMenuOpen()) { | ||
| 79 | game_.getSystem<MenuSystem>().activateOption(); | ||
| 80 | } | ||
| 81 | |||
| 78 | if (game_.isGameplayPaused()) continue; | 82 | if (game_.isGameplayPaused()) continue; |
| 79 | 83 | ||
| 80 | // If there is text on screen, try to advance it. | 84 | // If there is text on screen, try to advance it. |
