Browse code

keyboard can always ask for menu

devnewton authored on 17/03/2018 19:29:25
Showing 1 changed files
... ...
@@ -232,7 +232,8 @@ export class Level extends AbstractState {
232 232
         if (this.menu.alive) {
233 233
             return true;
234 234
         }
235
-        let isMenuAsked = false;
235
+        const controllers = (this.game as UnderthiefGame).controllers;
236
+        let isMenuAsked = controllers.getKeyboard().isMenuAsked();
236 237
         this.girlsTeam.forEachAlive((player) => {
237 238
             isMenuAsked = isMenuAsked || player.controls.isMenuAsked();
238 239
         }, null);